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

Sample create delete api v2 #330

Merged
merged 37 commits into from
Apr 12, 2022
Merged

Sample create delete api v2 #330

merged 37 commits into from
Apr 12, 2022

Conversation

cosa65
Copy link
Member

@cosa65 cosa65 commented Apr 7, 2022

No description provided.

@cosa65 cosa65 changed the title Sample create delete api v2 [DRAFT] Sample create delete api v2 Apr 7, 2022
@cosa65 cosa65 marked this pull request as draft April 7, 2022 17:17
@codecov
Copy link

codecov bot commented Apr 7, 2022

Codecov Report

Merging #330 (ca45e9f) into master (5015d0b) will increase coverage by 0.21%.
The diff coverage is 94.79%.

@@            Coverage Diff             @@
##           master     #330      +/-   ##
==========================================
+ Coverage   82.44%   82.65%   +0.21%     
==========================================
  Files         102      107       +5     
  Lines        2831     2895      +64     
  Branches      300      306       +6     
==========================================
+ Hits         2334     2393      +59     
- Misses        451      457       +6     
+ Partials       46       45       -1     
Impacted Files Coverage Δ
.eslintrc.js 0.00% <ø> (ø)
src/api.v2/model/InviteAccess.js 0.00% <0.00%> (ø)
src/api.v2/model/Sample.js 71.42% <71.42%> (ø)
src/api.v2/controllers/experimentController.js 100.00% <100.00%> (ø)
src/api.v2/controllers/sampleController.js 100.00% <100.00%> (ø)
src/api.v2/helpers/tableNames.js 100.00% <100.00%> (ø)
src/api.v2/middlewares/authMiddlewares.js 80.95% <100.00%> (ø)
src/api.v2/model/BasicModel.js 100.00% <100.00%> (ø)
src/api.v2/model/Experiment.js 100.00% <100.00%> (ø)
src/api.v2/model/MetadataTrack.js 100.00% <100.00%> (ø)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5015d0b...ca45e9f. Read the comment docs.

@cosa65 cosa65 changed the title [DRAFT] Sample create delete api v2 Sample create delete api v2 Apr 8, 2022
@cosa65 cosa65 marked this pull request as ready for review April 8, 2022 14:42
jest.clearAllMocks();
});

it('create works correctly', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

I don't see any tests for failure modes. Is there something we can test for?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't really think there are any unit tests to add there since all BasicModel does is do part of a query

Copy link
Member

@ivababukova ivababukova left a comment

Choose a reason for hiding this comment

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

I tested in staging, it is working well in v1. Didn't test v2 in staging. Feel free to merge after figuring out if you want to address my comments about the unit tests or if it is ok as they are.

@cosa65 cosa65 closed this Apr 12, 2022
@cosa65 cosa65 reopened this Apr 12, 2022
@cosa65 cosa65 closed this Apr 12, 2022
@cosa65 cosa65 reopened this Apr 12, 2022
@cosa65 cosa65 merged commit 55d30ec into master Apr 12, 2022
@cosa65 cosa65 deleted the sample-create-delete-v2 branch April 12, 2022 14:36
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