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

feat(api): projects: job-status api serializer #255

Merged
merged 2 commits into from
Jun 10, 2021

Conversation

kgajowy
Copy link
Contributor

@kgajowy kgajowy commented Jun 9, 2021

Substitute this line for a meaningful title for your changes

Overview

Please write a description. If the PR is hard to understand, provide a quick explanation of the code.

Designs

Link to the related design prototypes (if applicable)

Testing instructions

Please explain how to test the PR: ID of a dataset, steps to reach the feature, etc.

Feature relevant tickets

Link to the related task manager tickets


Checklist before submitting

  • Meaningful commits and code rebased on develop.
  • If this PR adds feature that should be tested for regressions when
    deploying to staging/production, please add brief testing instructions
    to the deploy checklist (docs/deployment-checklist.md)
  • Update CHANGELOG file

@vercel
Copy link

vercel bot commented Jun 9, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

marxan – ./app

🔍 Inspect: https://vercel.com/vizzuality1/marxan/BLhymr6J4fPqCVqBUbNABGKFUXR3
✅ Preview: https://marxan-git-api-project-job-status-api-layer-vizzuality1.vercel.app

marxan-storybook – ./app

🔍 Inspect: https://vercel.com/vizzuality1/marxan-storybook/2q7cggqQsqWTxEJNsCHZPJXmRAiN
✅ Preview: https://marxan-storybook-git-api-project-job-status-d13ec5-vizzuality1.vercel.app

@kgajowy kgajowy requested a review from Dyostiq June 9, 2021 12:14
@@ -47,7 +47,7 @@ export class JSONAPIProjectJobStatusData {
@ApiProperty({
type: String,
})
type = 'project-jobs';
type: 'project-jobs' = 'project-jobs';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
type: 'project-jobs' = 'project-jobs';
type = 'project-jobs' as const;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Dyostiq this makes swagger go crazy and treat type as Object

api/apps/api/src/modules/projects/projects.service.ts Outdated Show resolved Hide resolved
@Dyostiq Dyostiq merged commit 3d63ad0 into api/project-job-status Jun 10, 2021
@Dyostiq Dyostiq deleted the api/project-job-status-api-layer branch June 10, 2021 12:53
Dyostiq added a commit that referenced this pull request Jun 11, 2021
* feat(api): projects: job-status api serializer

* Update api/apps/api/src/modules/projects/projects.service.ts

Co-authored-by: Dyostiq <15174395+Dyostiq@users.noreply.github.com>
kgajowy added a commit that referenced this pull request Jun 16, 2021
* feat(api): projects: job-status api serializer

* Update api/apps/api/src/modules/projects/projects.service.ts

Co-authored-by: Dyostiq <15174395+Dyostiq@users.noreply.github.com>
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.

2 participants