docbrown/spec/requests
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/v0 Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
internal Implement ghostify (#2773) 2019-05-14 16:50:14 -04:00
notifications Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
additional_content_boxes_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
api_secrets_create_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
api_secrets_destroy_spec.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
article_mutes_spec.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
articles_create_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
articles_spec.rb Refactor: fix issues raised by bullet (#2965) 2019-05-28 17:32:53 -04:00
articles_update_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
async_info_spec.rb Remove controller specs (#2224) 2019-03-29 19:05:02 -04:00
badges_spec.rb Use ActiveRecord::RecordNotFound instead of ActionController::RoutingError for 404s (#2118) 2019-03-19 20:54:25 -04:00
blocks_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
buffer_updates_spec.rb Add page for users to "manage" their posts after publication (distribution, etc.) (#2627) 2019-05-01 09:00:09 -04:00
buffered_articles_spec.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
chat_channel_memberships_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
chat_channels_spec.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
classified_listings_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
comment_mutes_spec.rb Mute notifications for a comment thread (#1636) 2019-01-24 17:20:38 -05:00
comments_create_spec.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
comments_destroy_spec.rb Add comment policy and specs (#475) 2018-06-21 17:20:34 -04:00
comments_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
comments_update_spec.rb WIP Refactor/notifications (#1131) 2018-11-19 16:09:02 -05:00
credits_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
dashboard_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
delayed_job_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
editor_spec.rb Remove extra param and add message for prefill (#2487) 2019-04-18 15:34:50 -04:00
email_subscriptions_spec.rb Remove controller specs (#2224) 2019-03-29 19:05:02 -04:00
events_spec.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
feedback_messages_create_spec.rb Fix 404 issue when submitting abuse report (#3038) 2019-06-03 19:24:24 -04:00
follows_api_spec.rb Improve specs (#1693) 2019-02-04 15:56:00 -04:00
follows_show_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
follows_update_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
ga_events_spec.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
github_repos_spec.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
html_variant_successes_spec.rb Improve specs (#1693) 2019-02-04 15:56:00 -04:00
html_variant_trials_spec.rb Improve specs (#1693) 2019-02-04 15:56:00 -04:00
html_variants_spec.rb Add below-article html variant (#1669) 2019-01-28 14:31:43 -05:00
image_uploads_spec.rb Limit number of cover image uploads (#2851) 2019-05-17 15:59:07 -04:00
internal_buffer_updates_spec.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
internal_events_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
internal_feedback_messages_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
internal_reactions_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
internal_users_spec.rb Improve Internal Dashboards features(#2043) 2019-03-18 16:29:11 -04:00
listings_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
live_articles_spec.rb Add some tests around model validations (#459) 2018-06-20 17:14:08 -04:00
messages_spec.rb Improve specs (#1693) 2019-02-04 15:56:00 -04:00
moderations_spec.rb Refactor: fix issues raised by bullet (#2965) 2019-05-28 17:32:53 -04:00
notification_counts_spec.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
notifications_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
organizations_update_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
page_views_spec.rb Fix/augment dashboard and article view count issues (#2449) 2019-04-15 10:24:38 -04:00
pages_spec.rb Add API portal (#2915) 2019-05-21 12:46:52 -04:00
podcast_episodes_api_spec.rb Articles API: create and update (#2844) 2019-05-16 12:26:24 -04:00
podcast_episodes_index_spec.rb Allow users to follow podcasts (#2690) 2019-05-04 15:30:40 -04:00
push_notification_subscriptions_spec.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
pusher_auth_spec.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
rating_votes_spec.rb Add experience level averaging to articles (#1922) 2019-02-28 08:17:29 -08:00
reactions_api_spec.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
reactions_spec.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
reading_list_items_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
registration_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
rss_feed_spec.rb Customize RSS feed by tag (#2634) 2019-05-03 11:35:54 -04:00
social_previews_spec.rb Remove controller specs (#2224) 2019-03-29 19:05:02 -04:00
stories_index_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
stories_show_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
stripe_active_cards_spec.rb Remove membership and stripe subscription routes (#2741) 2019-05-07 11:37:21 -04:00
stripe_cancellations_spec.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
tag_adjustments_spec.rb Organization Notifications (#1762) 2019-02-25 14:25:37 -08:00
tags_api_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
tags_spec.rb Improve performance for additional content boxes and tags index (#1750) 2019-02-06 16:50:35 -04:00
twilio_tokens_spec.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
twitch_stream_updates_spec.rb Twitch Webhook Fixes (#2692) 2019-05-05 11:52:43 -04:00
user_organization_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
user_profile_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
user_settings_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
users_api_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
users_onboarding_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
video_states_update_spec.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
videos_api_spec.rb Clean up videos page and add tests (#2315) 2019-04-05 16:05:50 -04:00
videos_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00