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

Add maxSize extension support #1688

Merged
merged 17 commits into from
Jan 10, 2023

Conversation

FikriMilano
Copy link
Collaborator

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).

Fixes #1675

Description
Allows Questionnaire Item to limit the maximum file size the user can upload

Alternative(s) considered
N/A

Type
Feature

Screenshots (if applicable)
N/A

Checklist

  • I have read and acknowledged the Code of conduct.
  • I have read the Contributing page.
  • I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
  • I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
  • I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

Copy link
Contributor

@shoaibmushtaq25 shoaibmushtaq25 left a comment

Choose a reason for hiding this comment

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

Thanks @FikriMilano. LGTM 👍

@omarismail94 omarismail94 self-assigned this Oct 25, 2022
Copy link
Contributor

@omarismail94 omarismail94 left a comment

Choose a reason for hiding this comment

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

Thanks @FikriMilano for this PR! Added a few comments for review. PTAL and lmk what you think!

- Use Kibibytes and Mebibytes.
- Add test case when answer size is above limit.
Copy link
Contributor

@omarismail94 omarismail94 left a comment

Choose a reason for hiding this comment

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

Looks good to me! Will ask @jingtang10 to review quickly and approve!

@FikriMilano
Copy link
Collaborator Author

Awesome, thanks!

@FikriMilano
Copy link
Collaborator Author

FikriMilano commented Oct 27, 2022

@omarismail94 The CI was having a 120000 timeout error. Let me see if re-triggering it will work.

Same with this one #1678

@omarismail94
Copy link
Contributor

omarismail94 commented Oct 28, 2022

The Instrumentation test failed due to the Firebase Android phone timing out. Re-ran it and everything passed!

@jingtang10 can you PTAL at the PR and approve?

@FikriMilano
Copy link
Collaborator Author

@omarismail94
Is it possible to give me permission to re-run such thing? I have a feeling it will happen again (in other PRs)

@omarismail94
Copy link
Contributor

@omarismail94 Is it possible to give me permission to re-run such thing? I have a feeling it will happen again (in other PRs)

I think you do! In the Labels section on the right of the PR page, you can add the kokoro:force-run label to get the CI to re-run

@FikriMilano
Copy link
Collaborator Author

@omarismail94
Well, I also don't have permission to add labels

@jingtang10 jingtang10 removed their assignment Nov 22, 2022
@FikriMilano FikriMilano force-pushed the 1675-maxsize-extension-support branch from 2f22623 to a657118 Compare January 4, 2023 12:07
@FikriMilano
Copy link
Collaborator Author

@jingtang10 this is ready for another review

@jingtang10 jingtang10 enabled auto-merge (squash) January 10, 2023 13:31
@jingtang10 jingtang10 merged commit e3ff70b into google:master Jan 10, 2023
@jingtang10 jingtang10 deleted the 1675-maxsize-extension-support branch January 10, 2023 15:39
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.

Add maxSize extension support
6 participants