-
-
Notifications
You must be signed in to change notification settings - Fork 883
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
fixed the updation anamoly #883
fixed the updation anamoly #883
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## develop #883 +/- ##
===========================================
+ Coverage 81.28% 83.10% +1.81%
===========================================
Files 168 168
Lines 10087 10095 +8
Branches 858 897 +39
===========================================
+ Hits 8199 8389 +190
+ Misses 1886 1705 -181
+ Partials 2 1 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Looks like the issue is not assigned to you and you've made a PR without confirmation. Your PR is being closed due to this behaviour. |
@SiddheshKukade Sorry for not mentioning it in the issue that I opened . I did ask for confirmation in the talwa-api slack channel though and had gotten approval for both the pr and opening the issue. Please could you reopen it ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests to make sure this doesn't happen again.
Please make sure that the test coverage for the src/lib/resolvers/Mutation/updateUserProfile.ts
file is 100%
@palisadoes Added the tests for my code However -
|
Could this help?: https://gist.github.com/josephhanson/372b44f93472f9c5a2d025d40e7bb4cc |
Probably not considering that the upload image function destructures the
In my opinion, we have to use some sort of an actual placeholder image file in the codebase exclusively for testing the image upload function by reading that file. And we probably need a separate PR for that too because the image upload function utility itself has not been tested yet and that's why all the tests which have not reached full coverage is because of lack of test cases for upload and delete image functions. Can I open up a new issue for the testing upload image function? |
For now, I think it's best to merge this PR and focus on the file uploading in a separate PR since a lot of resolvers use that function. |
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.32 to 0.7.33. - [Release notes](https://github.com/faisalman/ua-parser-js/releases) - [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md) - [Commits](faisalman/ua-parser-js@0.7.32...0.7.33) --- updated-dependencies: - dependency-name: ua-parser-js dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* updated INSTALLATION.md * refactored and reorganized files/folders for better structure * updated test coverage included directories and remove unused package copyfiles * added @types/cors and fixed lint error
I am so sorry for the update notifications you must be getting because of this PR . because of complex conflicts the merge editor was not allowing me to edit it on the merge editor but rn seems all the conflicts are gone now. Any update regarding this? |
The code coverage level for the repo has declined for this PR. Please write tests for the file you edited so that coverage reaches 100% |
Thats weird after I am really sorry but I still don't know or even have a reference about how I am going to test the uploadImage function as I mentioned here. . I would love all the help I canget from more experienced talawa contributors. |
@palisadoes Sir, New commit increased the code coverage a bit. |
Are you willing to work on #559? |
Of course 👍 |
@SiddheshKukade Please review |
@palisadoes I just realised making another PR for #559 before this one is closed can cause git conflicts. SO now I just added the changes that will increase the code coverage for This PR also closes #559. |
I guess the latest commit rn should be good enough to close both those issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try to get the code coverage to 100% for updateUserProfile.ts and uploadImage.ts
|
@palisadoes you can safely close #559 also as I promised The coverage for updateUserProfile.ts is now 100% also. |
What kind of change does this PR introduce?
bugfix
Issue Number:
Fixes #882
Did you add tests for your changes?
Not Yet , Will make another commit for the tests.
Snapshots/Videos:
If relevant, did you update the documentation?
Summary
Now the Mutations only updates the fields specified explicitly in the argument and keeps the other fields as is.
Does this PR introduce a breaking change?
No.
Other information
Have you read the contributing guide?