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

Saving an activity report feedback #120

Merged
merged 4 commits into from
Jan 19, 2021

Conversation

jasalisbury
Copy link

Description of change

  • Rename "activityParticipant" to "activityRecipient"
  • Remove --runInBand, it appears to no longer be needed to prevent a race with tests that hit the database

How to test
Pull down, run all tests

Issue(s)

Remove `--runInBand`, it appears to no longer be needed to prevent a
race with tests that hit the database
Copy link

@rahearn rahearn left a comment

Choose a reason for hiding this comment

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

This is a lot cleaner, thanks.

Before merging, the newly renamed activity-recipients.yaml doc still references the old participant schema. Also, would it be possible to add a quick descriptive sentence at least to each overall object in the API docs, if not each field as well, especially any that aren't obvious.

@@ -18,7 +18,7 @@
"server:debug": "nodemon src/index.js --exec babel-node --inspect",
"client": "yarn --cwd frontend start",
"test": "jest src",
"test:ci": "cross-env JEST_JUNIT_OUTPUT_DIR=reports JEST_JUNIT_OUTPUT_NAME=unit.xml POSTGRES_USERNAME=postgres POSTGRES_DB=ttasmarthub CURRENT_USER_ID=5 CI=true jest src tools --runInBand --coverage --reporters=default --reporters=jest-junit",
"test:ci": "cross-env JEST_JUNIT_OUTPUT_DIR=reports JEST_JUNIT_OUTPUT_NAME=unit.xml POSTGRES_USERNAME=postgres POSTGRES_DB=ttasmarthub CURRENT_USER_ID=5 CI=true jest src tools --coverage --reporters=default --reporters=jest-junit",
Copy link

Choose a reason for hiding this comment

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

💯

Found a test that was removing all request errors, which was causing
failures when tests were run in parrallel. Was able to update the test
enabling parallel test runs
@rahearn
Copy link

rahearn commented Jan 19, 2021

It looks like the paticipant reference is still there, which prevents redoc from working:

$ref: '../../index.yaml#/components/schemas/participant'

@jasalisbury
Copy link
Author

It looks like the paticipant reference is still there, which prevents redoc from working:

$ref: '../../index.yaml#/components/schemas/participant'

Oh forgot to update that whole file! Should be updated now. I had to hard refresh locally to get redoc to show the new changes

Copy link

@rahearn rahearn left a comment

Choose a reason for hiding this comment

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

🚀

@jasalisbury jasalisbury merged commit 5d3c525 into main Jan 19, 2021
@jasalisbury jasalisbury deleted the js-saving-activity-report-feedback branch January 19, 2021 16:28
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