* Preload organization, not user
* Preload users only when needed
* Pre-load podcasts for podcast episodes in API
* Avoid eager loading error by loading rating votes separately
* Preload associations for moderation
* Preload user comments in trees
* Preload organization for non org dashboard and cleanup queries
* Optimize ArticleSuggester to only load N articles at need
* Remove eager loading and pass variables to partials for easier debug
* Reorganize tags validation code and ignore actsastaggableon eager loading issues
* Remove unused eager loading and bring up comments relation
* Preload podcasts when loading podcast episodes
* Fix views specs
* Make sure ArticleSuggester never returns duplicates
* Remove commented code
* Re-trigger build
* Move suggested articles back to view to respect fragment caching
* Improve a few idioms with their faster counterparts
* Remove unused routes and some dead code
* Add the option to use bullet in testing mode and move rack host redirect
* Go back to the classic fetch to make mocking work
* Reorder gems and fix code climate issue
* Add system test to create article from the editor
* Move article creation from API to app controller
* Fix system test to edit posts
* Move article update from API to app controller
* Rewrite create article API using API key
* Add main_image and canonical_url to allowed creation params
* Rewrite update article API using API key
* Fix tests and have Comments API inherit from API
* Initial work on v2
* Initial changes merger
* Work to finalize v1/v2 editor adjustments
* Clean up styling
* Fiddle with form margins
* Fix some tests
* Change video
* skip a couple tests
* Modify tests to work with new code
* Use published scope for articles
* Fix variable name
* The sequencing in the union query matters
* Fix spec
* Restore a published: true condition
* This test is actually misleading due to the union
* Revert this change, not sure why it's not a relation
* Fix useless diff
* Add specs for single article functionality
* Add single article functionality
* Use article_id instead of single_article_id
* Add published: true when querying for one article
* Use article_id in specs oops
* set up video route
* add video index
* update styling
* fix mobile full width styling
* bust cache when new video is created
* add unlimited scrolling
* Add basic tests for Analytics service
* User/Organization are always required
* Add some data to the test
* Use queries and date times
* Fix AnalyticsService interface in the controller
* s/HTTP_API_KEY/api-key
* Defend against nils and support datetime objects
* Update app/services/analytics_service.rb
Co-Authored-By: rhymes <rhymesete@gmail.com>
* Use SQL sum, not Rails sum
* Group average_read_time
* Use SQL, not Rails
* Use ISO date
* Fix specs
* Add API endpoints for analytics
* Remove comment and spacing
* Use proper time formatting
* Refactor and clean up some logic
* Add pro and org member traits
* Use shared examples for analytics API spec
* Add analytics authorization specs
* Remove accidental include Pundit
* Raise not_authorized for invalid requests
* Make attributes and time methods private
* Add custom UnauthorizedError
* Raise and use rescue_from to handle 4xx requests
* Enforce date parameters to follow a specific format
* Use current user to allow same origin requests
* Use custom headers and not params for token auth
* Default to current user for same origin requests
* Use correct boolean for choosing user
* Update tests to use request headers and add stricter tests
* Move follow and reaction aggregation into Notification model to avoid re-compute
* Ugh. Fixing schema
* Update tests
* Skip some tests in notifications_spec
* Remove stream and add new notification views
* Actually remove Stream
* Move followers query to async method
* Remove unused tests and fix query
* Try using without delay instead
* Add without delay and escape HTML
* Make all tests pending for now
* Add new columns to notifications table
* Remove stream from notifications and add new methods
* Turn off moderation comment notifications
* Add notifiable_type index to migration
* Stop creation of Stream-based notification model instances
* Add notification model create hooks
* Add badge achievement notification creation hook
* Fix some specs
* Add missing @ symbol
* Fix for tests and rename a few things
* forgot to uncomment code sigh
* Set default styles and move button style out of form
* Add MVP of Preact /settings/integrations
* Change background color on hover and focus
* Remove unused constructor
* Improve optimistic rendering
* Add display name
* Use loading indicator for optimistic rendering
* WIP test
* Add basic snapshot tests
* Use timezone aware datetime methods
* Use timezone aware date parse for GitHub issue tag
* Introduce a bit of chaos programming using Zonebie
Zonebie uses a random timezone to run tests, it's a really good way to see if the code is timezone dependent or not.
* Convert GitHub issue date as UTC
* Initial automatic cleanup with rubocop
* Fix syntax error introduced by rubocop
* Cleanup seeds file
* Cleanup lib folder
* Exclude bin folder because it contains auto generated files
* Make Rubocop a little bit more chatty
* Block length should not include comments in the count
* Cleanup config folder
* Cleanup specs
* Updated Rubocop version and generated a todo file
* Fix broken ArticlesApi spec
* Fix tests
* Restored rubocop pre-commit hook
* Create alternate editor
* Install linkstate (?)
Not sure how it disappear in the first place
* Run yarn install
* Modulize ArticleForm component
* Refactor
* Isolating css WIP
* Implement simplified frontmatter-less editor
* Modulize individual form element
* Ajust props names
* Transform json params to snakecase
* Remove codes
* Update /new, almost there for release
* Fix editor resize issues
* Change defaultvalue to value in article form tag element
* Modify html buttons in article form
* MVP of follow sidebar
* Prettier linted stuff
* More prettier lint
* Load only one widget
* fix github issue comment liquid tag (#242)
* Adjust Flatiron school copy/link (#241)
Per Flatiron School request, updating the homepage copy and link
* Add sticky sidebar to article show page (#243)
* Add sidebar sticky elements
* Add sticky sidebar to article show page
* Add saved changes check to user
* Fix missing CSS variable in sticky nav file
* Add date joined as default summary
* Remove accidentally-included file
* Add check for published on article sidebar
* Fix styling issues on side nav (#244)
* Add sidebar sticky elements
* Add sticky sidebar to article show page
* Add saved changes check to user
* Fix missing CSS variable in sticky nav file
* Add date joined as default summary
* Remove accidentally-included file
* Add check for published on article sidebar
* Fix styling issues on side nav
* Ben/article show redesign (#245)
* Add sidebar sticky elements
* Add sticky sidebar to article show page
* Add saved changes check to user
* Fix missing CSS variable in sticky nav file
* Add date joined as default summary
* Remove accidentally-included file
* Add check for published on article sidebar
* Fix styling issues on side nav
* Modify article order
* Fix issue in side bar
* Fix issue in side bar
* Ben/article show redesign (#246)
* Add sidebar sticky elements
* Add sticky sidebar to article show page
* Add saved changes check to user
* Fix missing CSS variable in sticky nav file
* Add date joined as default summary
* Remove accidentally-included file
* Add check for published on article sidebar
* Fix styling issues on side nav
* Modify article order
* Fix issue in side bar
* Fix issue in side bar
* Not show author image as other images
* Remove current article id from potential queried articles (#247)
* Add optimistic rendering for follow buttons
* Remove redundant line
* Fix inline stylesheet issue (#248)
* Remove current article id from potential queried articles
* Fix inline stylesheet issue
* Modify sticky_articles source to be more similar to post
* Move assign sticky nav around
* Modify sticky articles
* Attempt to fix sticky
* Fix article show to call 404
* Fix
* Conditional
* Add tag_line to org admin and add conditional on hiring post (#250)
* Modify sticky_article criteria (#251)
* Add tag_line to org admin and add conditional on hiring post
* Modify sticky_article criteria
* Move suggestions to single route
* Exclude self and already followed from suggestions
* Update readme with new API key instructions (#252)
* Modify query to be more performant and correct
* Add br instead of hr for last element
* Remove code for development woops
* Add user articles to sidebar (#253)
* Add user articles to sidebar
* Add organization save-all functionality
* Adjust articles that show up in side sticky bar (#254)
* Add user articles to sidebar
* Add organization save-all functionality
* Adjust articles that show up in side sticky bar
* Add conditional for @user_stickies to show up
* Misc change to styles (#255)
* Add user articles to sidebar
* Add organization save-all functionality
* Adjust articles that show up in side sticky bar
* Add conditional for @user_stickies to show up
* Misc change to styles
* Slight change
* Modified footer center show stuff
* Remove current article author from sticky sidebar (#256)
* Fix article preview issue (#257)
* Update blackbox's API endpoint (#259)
* Modify user tag follow suggestions