Skip to content

Conversation

@johnpinto1
Copy link
Contributor

@johnpinto1 johnpinto1 commented Mar 31, 2022

creation. The previous call based on instructions in wiki was always
defaulting to using the default template regardless of template id sent.

Fix for DCC bug 711 https://github.com/DigitalCurationCentre/DMPonline-Service/issues/711

The API Documentation V1 - Create Plan page has been changed
"dmptool" replaced by "dmproadmap" in fragment of Json sent for plan
creation.

Changes:

  • We use :dmproadmap which is the symbol of the dmproadmap json object
    nested in extensions which is the container for the json template object, etc.
  • In app/services/api/v1/deserialization_service.rb the method
    app_extensions() has been changed to use the symbol :dmproadmap.
  • In app/views/api/v1/plans/_show.json.jbuilder the block that builds
    the template json object now uses the symbol :dmproadmap
  • fixed tests in spec/services/api/v1/contextual_error_service_spec.rb
    and spec/services/api/v1/deserialization_service_spec.rb.

The Extensions fragment in POST
Selection_001

Extension fragment in Response
Selection_002

@johnpinto1 johnpinto1 force-pushed the dcc_bug_711-Creating_plans_using_V1_default_template_bug branch 5 times, most recently from 30e0cd1 to 46680f9 Compare March 31, 2022 14:07
creation. The previous call based on instructions in wiki was always
defaulting to using the default template regardless of template id sent.

Fix for DCC bug 711 https://github.com/DigitalCurationCentre/DMPonline-Service/issues/711

The API Documentation V1 - Create Plan page has been changed
"dmptool" replaced by "dmproadmap" in fragment of Json sent for plan
creation.

Changes:
- We use :dmproadmap which is the symbol of the dmproadmap json object
  nested in extensions which is the container for the json template object, etc.
- In app/services/api/v1/deserialization_service.rb the method
app_extensions() has been changed to use the symbol :dmproadmap.
- In app/views/api/v1/plans/_show.json.jbuilder the block that builds
the template json object now uses the symbol :dmproadmap
- fixed tests in spec/services/api/v1/contextual_error_service_spec.rb, spec/services/api/v1/deserialization_service_spec.rb
and ./spec/views/api/v1/plans/_show.json.jbuilder_spec.rb.
@johnpinto1 johnpinto1 force-pushed the dcc_bug_711-Creating_plans_using_V1_default_template_bug branch from 46680f9 to 58c23e9 Compare March 31, 2022 14:21
Copy link
Contributor

@briri briri left a comment

Choose a reason for hiding this comment

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

looks good @johnpinto1

@briri briri merged commit 030831f into development Mar 31, 2022
@briri briri deleted the dcc_bug_711-Creating_plans_using_V1_default_template_bug branch March 31, 2022 14:48
@briri briri mentioned this pull request Apr 6, 2022
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.

4 participants