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

Added Pinning functionality in the create post modal. #1129

Closed

Conversation

AmitSharma512
Copy link
Contributor

What kind of change does this PR introduce?

Pinning functionality in the create post modal.

Issue Number:

Fixes #1122

Summary

I added the pinning functionality in the create post modal to pin the post in the create post modal itself.

Does this PR introduce a breaking change?

No

Have you read the contributing guide?

Yes

Copy link

github-actions bot commented Dec 5, 2023

Our Pull Request Approval Process

We have these basic policies to make the approval process smoother for our volunteer team.

Testing Your Code

Please make sure your code passes all tests. Our test code coverage system will fail if these conditions occur:

  1. The overall code coverage drops below the target threshold of the repository
  2. Any file in the pull request has code coverage levels below the repository threshold
  3. Merge conflicts

The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing.

Reviewers

When your PR has been assigned reviewers contact them to get your code reviewed and approved via:

  1. comments in this PR or
  2. our slack channel

Reviewing Your Code

Your reviewer(s) will have the following roles:

  1. arbitrators of future discussions with other contributors about the validity of your changes
  2. point of contact for evaluating the validity of your work
  3. person who verifies matching issues by others that should be closed.
  4. person who gives general guidance in fixing your tests

CONTRIBUTING.md

Read our CONTRIBUTING.md file. Most importantly:

  1. PRs with issues not assigned to you will be closed by the reviewer
  2. Fix the first comment in the PR so that each issue listed automatically closes

Other

  1. 🎯 Please be considerate of our volunteers' time. Contacting the person who assigned the reviewers is not advised unless they ask for your input. Do not @ the person who did the assignment otherwise.
  2. Read the CONTRIBUTING.md file make

@palisadoes palisadoes requested review from aashimawadhwa and rishav-jha-mech and removed request for aashimawadhwa December 5, 2023 16:19
@palisadoes
Copy link
Contributor

@AmitSharma512 Please get the code coverage for the file you edited up to 100%. That is the cause of the failed tests.

Copy link
Contributor

@palisadoes palisadoes left a comment

Choose a reason for hiding this comment

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

@AmitSharma512 Please get the code coverage for the file you edited up to 100%. That is the cause of the failed tests.

@AmitSharma512
Copy link
Contributor Author

@AmitSharma512 Please get the code coverage for the file you edited up to 100%. That is the cause of the failed tests.

I updated the code and added tests for the same.

@AmitSharma512
Copy link
Contributor Author

@aashimawadhwa I have updated the code and added tests for the same, plz review it.

@noman2002
Copy link
Member

@AmitSharma512 Please attach a screenshot of 100% code coverage of file you edited.

@AmitSharma512
Copy link
Contributor Author

@AmitSharma512 Please attach a screenshot of 100% code coverage of file you edited.

image

I have added the test for the modified files

@AmitSharma512
Copy link
Contributor Author

@AmitSharma512 Please attach a screenshot of 100% code coverage of file you edited.

image

only those lines are left which are not updated by me.

@noman2002
Copy link
Member

@AmitSharma512 Please attach a screenshot of 100% code coverage of file you edited.

image

only those lines are left which are not updated by me.

You have to write the test for all the missing lines in a file which you edit. Please add the tests for missing lines and get it to 100%

@AmitSharma512
Copy link
Contributor Author

@AmitSharma512 Please attach a screenshot of 100% code coverage of file you edited.

image
only those lines are left which are not updated by me.

You have to write the test for all the missing lines in a file which you edit. Please add the tests for missing lines and get it to 100%

I have written test for all the missing lines, this screenshot is showing the current code coverage.

@noman2002
Copy link
Member

@AmitSharma512 Please attach a screenshot of 100% code coverage of file you edited.

image
only those lines are left which are not updated by me.

You have to write the test for all the missing lines in a file which you edit. Please add the tests for missing lines and get it to 100%

I have written test for all the missing lines, this screenshot is showing the current code coverage.

This is still showing 95% , please get it to 100%.

@AmitSharma512
Copy link
Contributor Author

@aashimawadhwa i have made the required changes and written the tests for the same also, plz review it.

@palisadoes
Copy link
Contributor

The test code coverage is dropping significantly with this PR. Please get to at least 95% coverage for all your edited files. Though there may be issues to increase the coverage for the file, the aim is for them to reach 100% coverage

@AmitSharma512
Copy link
Contributor Author

@palisadoes after getting all the files covered, the percentage will still be 94.46% as the previous code, without any changes is also not above 95 percent.

@palisadoes
Copy link
Contributor

Please try merging your code in this PR with the latest upstream. That should fix it.

@AmitSharma512
Copy link
Contributor Author

@palisadoes now the test coverage is 95.43% which is above 95%

@palisadoes
Copy link
Contributor

The patch is still only 80% according to the last set of tests. Please fix.

image

@PalisadoesFoundation PalisadoesFoundation deleted a comment from codecov bot Dec 16, 2023
Copy link

codecov bot commented Dec 16, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (4027f3a) 95.46% compared to head (f58e019) 95.43%.
Report is 10 commits behind head on develop.

Files Patch % Lines
src/screens/OrgPost/OrgPost.tsx 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1129      +/-   ##
===========================================
- Coverage    95.46%   95.43%   -0.03%     
===========================================
  Files          138      138              
  Lines         3328     3333       +5     
  Branches       923      923              
===========================================
+ Hits          3177     3181       +4     
- Misses         144      145       +1     
  Partials         7        7              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@palisadoes
Copy link
Contributor

There is some minor work that needs to be done to get is to the desired 100% test coverage on this file. Please try to get us there. The reliability of our code is very important

@palisadoes
Copy link
Contributor

Is this still being worked on?

@AmitSharma512
Copy link
Contributor Author

@palisadoes yes

@noman2002
Copy link
Member

@AmitSharma512 Its been more than 3 weeks since this PR is open. Please update on this or I have to close it.

@noman2002
Copy link
Member

Closing due to inactivity.

@noman2002 noman2002 closed this Dec 31, 2023
@AmitSharma512 AmitSharma512 deleted the Pinned-post' branch January 2, 2024 17:27
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