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

Feature: Allow Single Object Upload Photo/video #1444

Merged
merged 35 commits into from
Jan 28, 2024

Conversation

duplixx
Copy link
Member

@duplixx duplixx commented Jan 17, 2024

What kind of change does this PR introduce?

Feature

Issue Number:

Fixes #1127

Did you add tests for your changes?

Yes

Snapshots/Videos:
All the videos and snapshots are present in this pr
#1193

If relevant, did you update the documentation?

Summary

Does this PR introduce a breaking change?

Other information

Have you read the contributing guide?

Copy link

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

@beingnoble03
Copy link
Member

Please fix the failing tests.

@duplixx
Copy link
Member Author

duplixx commented Jan 22, 2024

image
this workflow error is not part of my pr how should i fix this @palisadoes @beingnoble03

@palisadoes
Copy link
Contributor

The introspection test will fail as we have added features to the API that are not yet implemented in Admin

@beingnoble03
@noman2002

Please review

@duplixx
Copy link
Member Author

duplixx commented Jan 24, 2024

@noman2002 @beingnoble03 can you review it as this feature is was implemented a month ago in previous PR #1193

)}
{!postformState.postImage && (
<>
<Form.Label htmlFor="postvideo">{t('video')}</Form.Label>
Copy link
Member

Choose a reason for hiding this comment

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

I think you can delete video from en.json and other files too. If it's not in use anywhere else in this component/screen.

@@ -382,116 +397,54 @@ function orgPost(): JSX.Element {
});
}}
/>
{!postformState.postVideo && (
<>
<Form.Label htmlFor="postPhoto">{t('image')}</Form.Label>
Copy link
Member

Choose a reason for hiding this comment

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

I think you can delete image from en.json and other files too. If it's not in use anywhere else in this component/screen.

Copy link
Member

@beingnoble03 beingnoble03 left a comment

Choose a reason for hiding this comment

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

@duplixx please address the comments. Rest lgtm.

Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (83b1234) 97.10% compared to head (01704c6) 97.09%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1444      +/-   ##
===========================================
- Coverage    97.10%   97.09%   -0.02%     
===========================================
  Files          133      133              
  Lines         3422     3403      -19     
  Branches      1041     1031      -10     
===========================================
- Hits          3323     3304      -19     
  Misses          94       94              
  Partials         5        5              

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

@duplixx
Copy link
Member Author

duplixx commented Jan 24, 2024

@beingnoble03 changes done !!

@duplixx
Copy link
Member Author

duplixx commented Jan 27, 2024

i have done changes can we merge it @palisadoes @beingnoble03 @noman2002

Copy link
Member

@noman2002 noman2002 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Please merge with the latest upstream.

The tests should pass now

@palisadoes palisadoes merged commit e398810 into PalisadoesFoundation:develop Jan 28, 2024
9 of 10 checks passed
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.

4 participants