docbrown/spec/models
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
..
shared_examples Fix delayed job errors related to reactions #1621 (#1883) 2019-02-27 16:19:01 -08:00
api_secret_spec.rb ApiSecret model for Developer API (#1369) 2019-01-08 12:30:54 -05:00
article_destroy_spec.rb Move async article methods to ActiveJob (#2647) 2019-05-10 12:52:00 -04:00
article_spec.rb Fix some connect bugs with wrong url and remove some dead code (#2953) 2019-05-24 12:19:59 -04:00
badge_achievement_spec.rb Award credits along with badge achievements (#2683) 2019-05-03 15:38:25 -04:00
badge_spec.rb Update deprecated Faker::Overwatch use (#2142) [skip ci] 2019-03-21 12:17:16 -04:00
block_spec.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
buffer_update_spec.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
chat_channel_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
classified_listing_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
comment_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
credit_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
display_ad_spec.rb Add areas for DEV Shop displays on left sidebar (#2162) 2019-03-22 09:57:37 -04:00
event_spec.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
feedback_message_spec.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
follow_spec.rb Enable random order for specs (#2466) [ci skip] 2019-04-17 11:30:23 -04:00
github_issue_spec.rb Bump octokit from 4.8.0 to 4.12.0 (#744) [ci skip] 2018-09-25 17:04:58 -04:00
github_repo_spec.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
html_variant_spec.rb Add missing CloudinaryHelper inclusion in HtmlVariant (#1923) 2019-02-28 06:57:05 -08:00
html_variant_success_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
html_variant_trial_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
identity_spec.rb Optimize sign in: Identity #2061 (#2231) 2019-03-28 16:10:23 -04:00
job_opportunity_spec.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
mention_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
mentor_relationship_spec.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
message_spec.rb Improve specs (#1693) 2019-02-04 15:56:00 -04:00
note_spec.rb Improve specs (#1693) 2019-02-04 15:56:00 -04:00
notification_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
organization_membership_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
organization_spec.rb Create serialized cached user and cached organization for articles (#2658) 2019-05-02 14:42:28 -04:00
page_spec.rb Add application "page" model (#2657) 2019-05-02 18:24:06 -04:00
page_view_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
podcast_episode_spec.rb Fix Rubocop Style/MixinUsage and cleanup prefix_all_images (#1451) 2019-01-04 14:20:53 -05:00
push_notification_subscription_spec.rb Clean up spec outputs (#450) 2018-06-19 16:27:15 -04:00
rating_vote_spec.rb Add page for users to "manage" their posts after publication (distribution, etc.) (#2627) 2019-05-01 09:00:09 -04:00
reaction_create_spec.rb Enable random order for specs (#2466) [ci skip] 2019-04-17 11:30:23 -04:00
reaction_destroy_spec.rb Enable random order for specs (#2466) [ci skip] 2019-04-17 11:30:23 -04:00
reaction_spec.rb Extract new reaction notification to ActiveJob (#2122) 2019-03-25 13:54:21 -04:00
search_keyword_spec.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
tag_adjustment_spec.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
tag_spec.rb Improve performance for additional content boxes and tags index (#1750) 2019-02-06 16:50:35 -04:00
tweet_spec.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
user_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00