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
Conversation
mehalshah
commented
Feb 22, 2018
May be fixing a bunch of tests for this |
loadRegionalPartners() { | ||
this.loadRegionalPartnersRequest = $.ajax({ | ||
method: "GET", | ||
url: '/api/v1/regional-partners/for_user', |
There was a problem hiding this comment.
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=""/> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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"
…ethods Rename regional partner methods
@@ -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> |
There was a problem hiding this comment.
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