docbrown/app/services
Andy Zhao 47d9ec27fb Allow users to belong to multiple orgs (#2583)
* Allow user to have many orgs

* Allow users to handle multi orgs in settings

* Make rounded buttons inline

* Add multi org function to dashboards

* Fix merge conflicts

* Fix mistake in merge conflict fix oops

* Display the correct membership level

* Fix accessibility issues

* Display organizations for article editors

* Handle submitting org id with preact editors

* Make listings work with multiple organizations

* Allow listings to have multiple orgs on create

* Display the correct number of credits for each org

* Move script tag to Webpack

* Allow multi orgs for purchasing and viewing credits

* Use OrganizationMembership as authorization check

* Display multiple organizations for notifications

* Allow dashboard to be viewable under multi-orgs

* Remove unused method

* Add multi-org functionality for article editors

* Show pro dashboard buttons for member+ org levels

* Leave the correct organization

* Allow article API to change org id

* Add left-out authorization method oops

* Make nav buttons a bit more clear

* Fix merge conflict

* Fix adding org id for /api/articles and tests

* Fix tests for org policy

* Use proper logic for displaying org members

* Update org actions with new authorization

* Use correct org when creating a listing

* Remove additional payment charge oops

* Mark org notifications as read with authorization

* Remove deprecated post_as_organization attribute

* Use new org_admin syntax

* Remove deprecated org logic for article create and update

* Default all RSS posts to not belong to any org

* Render org_member page for guest users

* Update org policy spec to work with multi orgs

* Use org_membership for org traits and move identity code

* Use org_member trait

* Update to work with multi-orgs

* Validate article's org_id if param org_id is blank

* Make  a let variable

* Remove unnecessary eager load for credits

* Fix HTML structure and org logic for non-org users

* Update credits spec for multi-org

* Add test for failed payment when purchased by org

* Lint listings_spec

* Test that the listing was created under the user

* Add tests for POST /listings multi-org

* Use double quotes for classes

* Fix /manage and a few other multi-org bugs

* Fix test for multi org

* Use correct method SQL exists? not Rails exist?

* Fix reads spec for multi-org

* Fix org_controller actions to work with multi org

* Test only multi org and not old usage and fix leave_org

* Fix org showing user profile img test for multi-org

* Fix org logic for users with no orgs

* Remove switch org functionality

* Update tests and add hidden param for org id

* Redirect to the specific organization

* Test other org button actions

* Use settings_notice instead of legacy notice and refactor

* Fix weird extra end issue prob from merge conflicts

* Test for with new flash key

* Fix user_views_org tests for multi-org

* Test for new flash message

* Update snapshot with new a11y html

* Move styling to stylesheet

* Add site admins functionality

* Move org_member? method in user model and refactor

* Use unspent_credits_count for organizations

* Add tests for /listings/new and minor bug fixes

* Use .present? in case of empty array

* Fix a lingering deprecated method

* Use greater than 1 for random numbers

* Add tests for counting spent and unspent credits
2019-06-04 09:30:52 -04:00
..
articles Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
aws Remove unused code (#2567) [ci skip] 2019-04-26 12:16:16 -04:00
edge_cache/commentable Refactor Comments::BustCacheJob to use a service (#2655) 2019-05-09 10:10:37 -04:00
exporter Fix name resolving error on export (#2612) 2019-04-29 15:37:50 -04:00
moderator Refactor: fix issues raised by bullet (#2965) 2019-05-28 17:32:53 -04:00
notifications Validate on creating a reaction notification (#3010) 2019-05-31 07:30:17 -04:00
rss_reader Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
streams Fix #2784, Don't fail when twitch returns no user data (#2865) 2019-05-17 10:54:29 -04:00
suggester Use published scope for articles (#2374) 2019-04-11 13:18:26 -04:00
users Change format of the user languages_settings #2369 (#2496) 2019-04-30 17:01:19 -04:00
analytics_service.rb Add caching for historical data (#2476) 2019-04-18 09:43:30 -04:00
article_api_index_service.rb Refactor: fix issues raised by bullet (#2965) 2019-05-28 17:32:53 -04:00
article_creation_service.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
article_with_video_creation_service.rb Upgrade rubocop and rubocop-performance (#2802) [ci skip] 2019-05-13 19:21:24 -04:00
authorization_service.rb [WIP] Move both v1 and v2 editor to v2 preact-driven editor (#2797) 2019-05-13 12:27:36 -04:00
chat_channel_creation_service.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
chat_channel_update_service.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
get_unseen_notifications_service.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
medium_article_retrieval_service.rb #118 Allow users to embed Medium posts with Liquid Tags (#1161) 2019-04-17 10:13:38 -04:00
membership_service.rb Add OrganizationMembership model (#2471) 2019-04-22 14:08:02 -04:00
notifications.rb ActiveJob for updating notifications #1996 (#2839) 2019-05-15 12:37:25 -04:00
ping_admins.rb Implemented ActiveJob for RateLimitChecker Job (#2878) 2019-05-21 08:45:58 -04:00
read_notifications_service.rb Organization Notifications (#1762) 2019-02-25 14:25:37 -08:00
rss_reader.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
tag_adjustment_creation_service.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
tag_adjustment_update_service.rb [WIP] Allow mods to remove tags and send user notification (#1252) 2018-12-04 16:45:32 -05:00