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

Features/forms response #115

Merged
merged 21 commits into from
Apr 9, 2024
Merged

Features/forms response #115

merged 21 commits into from
Apr 9, 2024

Conversation

siasktv
Copy link
Contributor

@siasktv siasktv commented Mar 8, 2024

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Issue link

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature updates / changes
  • Tests
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

yarn test:e2e forms

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have updated the change log

Copy link
Collaborator

@cherylli cherylli left a comment

Choose a reason for hiding this comment

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

hi, I get this response for sprints

image

which is not the desired response, refering to trello, we want something like this

image

prisma/migrations/20240305172254_1222/migration.sql Outdated Show resolved Hide resolved
src/forms/forms.service.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@timDeHof timDeHof left a comment

Choose a reason for hiding this comment

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

I think the i at 'line 56 in form.service.ts' should be change to something more descriptive to make it easier to read.

@cherylli
Copy link
Collaborator

not sure if this is ready for review again since I see a new push but no comments with it.

There are still a few issues

  • subquestions are also appeared under questions, e.g. question id 18 is appeared under both. could you please remove them from questions
  • is it possible to hide subquestions when there's no subquestions? "subQuestions": []
  • will also need to update the sample response on swagger

@cherylli
Copy link
Collaborator

marking this as draft as changes are required

@cherylli cherylli marked this pull request as draft March 15, 2024 02:45
@siasktv siasktv marked this pull request as ready for review March 21, 2024 02:38
@siasktv
Copy link
Contributor Author

siasktv commented Mar 21, 2024

not sure if this is ready for review again since I see a new push but no comments with it.

There are still a few issues

  • subquestions are also appeared under questions, e.g. question id 18 is appeared under both. could you please remove them from questions
  • is it possible to hide subquestions when there's no subquestions? "subQuestions": []
  • will also need to update the sample response on swagger

I think now is ready for review :)

Copy link
Collaborator

@cherylli cherylli left a comment

Choose a reason for hiding this comment

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

image

subQuestion actual responses don't match swagger example

image

subQuestions select needs more detail
image

prisma/migrations/20240305172254_1222/migration.sql Outdated Show resolved Hide resolved
src/forms/forms.response.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@cherylli cherylli left a comment

Choose a reason for hiding this comment

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

thanks, just looked at the code quickly before bed, will test it in action tomorrow 😊

src/forms/forms.service.ts Outdated Show resolved Hide resolved
@cherylli
Copy link
Collaborator

thanks, tested on swagger, everything works and all existing tests passed

@cherylli
Copy link
Collaborator

cherylli commented Apr 5, 2024

  • will also need to update the sample response on swagger

it seems the swagger sample response doesn't match the actual response
image

@siasktv
Copy link
Contributor Author

siasktv commented Apr 5, 2024

Hi @cherylli I checked swagger sample response and it seems it matches with the response. I couldn't find the error, could you please be more specific?
image

@cherylli
Copy link
Collaborator

cherylli commented Apr 6, 2024

thanks. it looks fine now. I must be looking at an older version sorry

@cherylli cherylli requested a review from timDeHof April 7, 2024 03:34
Copy link
Collaborator

@curtwl curtwl 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!

Copy link
Collaborator

@timDeHof timDeHof left a comment

Choose a reason for hiding this comment

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

great job! All tests passed

@siasktv siasktv merged commit b3c4675 into dev Apr 9, 2024
1 check passed
@siasktv siasktv deleted the features/forms-response branch April 9, 2024 01:45
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.

None yet

4 participants