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

Regional Partner is now editable in the workshop form #20811

Merged
merged 5 commits into from Feb 26, 2018

Conversation

mehalshah
Copy link
Contributor

image

@mehalshah mehalshah requested a review from aoby February 22, 2018 00:11
@mehalshah
Copy link
Contributor Author

May be fixing a bunch of tests for this

loadRegionalPartners() {
this.loadRegionalPartnersRequest = $.ajax({
method: "GET",
url: '/api/v1/regional-partners/for_user',
Copy link
Contributor

@aoby aoby Feb 22, 2018

Choose a reason for hiding this comment

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

As discussed offline, please change this route in a followup PR to be /api/v1/regional-partners, switch the action from for_user to index, and rename the existing index action something like for_district_and_course since it's less standard / more specific.

value={this.state.regional_partner_id || ''}
disabled={this.props.readOnly}
>
<option value=""/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this null option maybe say "None", or should the control have placeholder text?

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'll make the null option say "none"

@@ -1,6 +1,6 @@
class Api::V1::RegionalPartnersController < ApplicationController
# GET /api/v1/regional-partner/<school_district_id>/<course>
def index
# GET /api/v1/regional_partner/<school_district_id>/<course>
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: regional_partners (pluralize). Same below

@mehalshah mehalshah merged commit 4070038 into staging Feb 26, 2018
@balderdash balderdash deleted the regional_partner_for_user_in_form branch September 20, 2018 17:51
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

2 participants