Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop showing cohort capacity #31433

Merged
merged 4 commits into from Oct 24, 2019
Merged

Stop showing cohort capacity #31433

merged 4 commits into from Oct 24, 2019

Conversation

hacodeorg
Copy link
Contributor

@hacodeorg hacodeorg commented Oct 23, 2019

Description

PLC-574

  • Remove "available seats" and "remaining capacity" rows from the cohort calculator
    Screen Shot 2019-10-23 at 2 46 17 PM

  • Remove logic restricting the cohort calculator to only display when a partner has specified their cohort size.

  • Remove "Cohort capacity csd" and "Cohort capacity csp" fields from the regional partner edit view and the regional partner info view

Testing story

Manual tests on local host.

… Remove logic restricting the cohort calculator to only display when a partner has specified their cohort size.
…ts has been deprecated, in favor of keyword arguments, and will be removed in Rails 5.1.
@@ -249,13 +249,13 @@ class Api::V1::RegionalPartnersControllerTest < ActionController::TestCase
test 'show regional partner summer workshops for valid partner ID' do
regional_partner = create :regional_partner_beverly_hills

get :show, partner_id: regional_partner.id
get :show, params: {partner_id: regional_partner.id}
Copy link
Contributor Author

@hacodeorg hacodeorg Oct 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to fix a deprecation warning while running tests in RubyMine

Using positional arguments in functional tests has been deprecated, in favor of keyword arguments, and will be removed in Rails 5.1.

capacity: null,
loadingRegistrationCount: null,
registered: null
loadingEnrollmentCount: null,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I change loadingRegistrationCount to loadingEnrollmentCount and registered to enrolled to match the function name and value returned from the server side.

@hacodeorg hacodeorg marked this pull request as ready for review October 23, 2019 21:51
Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hacodeorg hacodeorg merged commit d1e3e9e into staging Oct 24, 2019
@hacodeorg hacodeorg deleted the ha/cohort-cap branch October 24, 2019 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants