docbrown/spec/factories
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
..
api_secrets.rb ApiSecret model for Developer API (#1369) 2019-01-08 12:30:54 -05:00
articles.rb Upgrade factory_bot_rails to 5.2.0 (#2532) [ci skip] 2019-04-23 13:21:22 -04:00
badge_achievements.rb Bump factorybot rails (#475) 2018-08-24 17:28:26 -04:00
badges.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
blocks.rb Bump factorybot rails (#475) 2018-08-24 17:28:26 -04:00
broadcasts.rb Bump factorybot rails (#475) 2018-08-24 17:28:26 -04:00
chat_channel_memberships.rb Add initial invitation framework for chat channels (#528) 2018-07-02 16:31:20 -04:00
chat_channels.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
classified_listings.rb Classified Listings (#2545) 2019-04-24 16:17:01 -04:00
collections.rb Articles API: create and update (#2844) 2019-05-16 12:26:24 -04:00
comments.rb Fix delayed job errors related to reactions #1621 (#1883) 2019-02-27 16:19:01 -08:00
credits.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
display_ads.rb Add areas for DEV Shop displays on left sidebar (#2162) 2019-03-22 09:57:37 -04:00
events.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
feedback_messages.rb Bump factorybot rails (#475) 2018-08-24 17:28:26 -04:00
follow.rb Fix delayed job errors related to follows #1621 (#1835) 2019-02-23 18:16:20 -08:00
github_repos.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
html_variants.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
identities.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
mentions.rb Bump factorybot rails (#475) 2018-08-24 17:28:26 -04:00
messages.rb Implement chatroom (#308) 2018-05-14 12:50:32 -04:00
notifications.rb Notifications part 2 (#1156) 2018-11-19 18:14:24 -05:00
organization_memberships.rb Add OrganizationMembership model (#2471) 2019-04-22 14:08:02 -04:00
organizations.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
page_views.rb Simplify AnalyticsService code (#2308) 2019-04-04 16:07:57 -04:00
pages.rb Add application "page" model (#2657) 2019-05-02 18:24:06 -04:00
podcast_episodes.rb Stories views reorganization (#1317) 2018-12-13 14:54:02 -05:00
podcasts.rb Allow users to follow podcasts (#2690) 2019-05-04 15:30:40 -04:00
rating_votes.rb Add experience level averaging to articles (#1922) 2019-02-28 08:17:29 -08:00
reactions.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
search_keywords.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
tag_adjustments.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
tags.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
users.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00