-
Notifications
You must be signed in to change notification settings - Fork 109
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
DCC Issue 679 - Fix for issue that Super Admins unable to create new #3091
DCC Issue 679 - Fix for issue that Super Admins unable to create new #3091
Conversation
Orgs. Fix for DCC issue https://github.com/DigitalCurationCentre/DMPonline-Service/issues/679 Changes: - in app/controllers/super_admin/orgs_controller.rb added missing params to orgs_params method :funder, :institution, :organisation - in app/models/org.rb removed (as it is never set on Org creation) validates :abbreviation, presence: { message: PRESENCE_MESSAGE } - in app/views/orgs/_profile_form.html.erb removed :abbreviation required "aria-required": true - in app/views/shared/org_selectors/_external_only.html.erb renamed wrongly named text field :org_name to :name <%= form.label :name, label %> <%= form.text_field :name, class: "form-control autocomplete",
You have changes to _external_only which are not reflected in _combined or _local_only. |
@raycarrick-ed will check based on above comment. Well caught. Will check for :org_name elsewhere too and update. |
@raycarrick-ed looks like change in app/views/shared/org_selectors/_external_only.html.erb is not quite right. As lookup of orgs fail. Need to look into it as _combined or _local_only versions work correctly. |
@raycarrick-ed Switching RoR on affects following: app/views/orgs/_profile_form.html.erb app/views/shared/org_selectors/_combined.html.erb app/views/shared/org_selectors/_combined.html.erb is used by: The app/views/orgs/_profile_form.html.erb is the used in: app/views/super_admin/orgs/new.html.erb app/views/orgs/_profile_form.html.erb app/views/orgs/admin_edit.html.erb app/views/devise/registrations/_personal_details.html.erb is used by: |
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.
looks ok to me @johnpinto1 that 'external_only' partial is only used on that one page so changing the param names will not negatively impact other portions of the site.
…d-new-organisations
Orgs. Fix for DCC issue https://github.com/DigitalCurationCentre/DMPonline-Service/issues/679 Changes: - in app/controllers/super_admin/orgs_controller.rb added missing params to orgs_params method :funder, :institution, :organisation - in app/models/org.rb removed (as it is never set on Org creation) validates :abbreviation, presence: { message: PRESENCE_MESSAGE } - in app/views/orgs/_profile_form.html.erb removed :abbreviation required "aria-required": true - in app/views/shared/org_selectors/_external_only.html.erb renamed wrongly named text field :org_name to :name <%= form.label :name, label %> <%= form.text_field :name, class: "form-control autocomplete",
…s' of github.com:DMPRoadmap/roadmap into bug-dcc-679-super-admins-unable-to-add-new-organisations
Schrodinger's cat, it seems
in org model spec
org spec failing with no abbrev for some reason.
Used to be that org had to have an abbrev. That stopped the Super Admin creating the org so was removed. Remove check from this test.
Orgs.
Fix for DCC issue https://github.com/DigitalCurationCentre/DMPonline-Service/issues/679
Changes:
to orgs_params method
:funder, :institution, :organisation
validates :abbreviation, presence: { message: PRESENCE_MESSAGE }
"aria-required": true
<%= form.label :name, label %>
<%= form.text_field :name, class: "form-control autocomplete",