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

Use stable 2.3.1 swagger codgen #179

Merged
merged 1 commit into from
Jan 25, 2018
Merged

Conversation

garyluu
Copy link
Contributor

@garyluu garyluu commented Jan 23, 2018

Upgrade to use the stable 2.3.1 swagger codegen

@@ -173,7 +173,7 @@ export class ContainerComponent extends Entry {

// Only get published tool if the URI is for a specific tool (/containers/quay.io%2FA2%2Fb3)
// as opposed to just /tools or /docs etc.
this.containersService.getPublishedContainerByToolPath(this.title, this._toolType)
Copy link
Member

Choose a reason for hiding this comment

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

was an explanation discovered for this disappearing parameter?

Copy link
Contributor Author

@garyluu garyluu Jan 25, 2018

Choose a reason for hiding this comment

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

This is what I think happened.

  1. We were originally not using the swagger generated methods and we had our own method with an extra parameter to differentiate between tool/workflow.
  2. We swapped the methods to the swagger-generated ones but didn't remove that extra parameter during the change. The swagger-generated methods so happen to allow an extra parameter with type 'any'. so it still worked but didn't really do anything significant with that extra parameter.

With the new 2.3.1 swagger generated methods, it appears they removed this 'any' type parameter so it no longer works.

@@ -152,7 +152,7 @@ export class WorkflowComponent extends Entry {

// Only get published workflow if the URI is for a specific workflow (/containers/quay.io%2FA2%2Fb3)
// as opposed to just /tools or /docs etc.
this.workflowsService.getPublishedWorkflowByPath(this.title, this._toolType)
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same

@garyluu garyluu merged commit e33720a into develop Jan 25, 2018
@garyluu garyluu deleted the feature/swaggerCodegenUpgrade branch January 25, 2018 16:08
garyluu added a commit that referenced this pull request Feb 13, 2018
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.

3 participants