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 date and time to Feedback #5797

Conversation

ujjwal2900
Copy link
Contributor

Description (required)

Fixes #5564

What changes did you make and why?
Appended the current date and time to feedback which will help in understanding when was the feedback given and if the problem still exists.

Tests performed (required)

Tested {build variant, e.g. ProdDebug} on {Pixel Fold API 35} with API level {35}.

gradle.properties Outdated Show resolved Hide resolved
@ujjwal2900 ujjwal2900 force-pushed the fix/5564_Feedback_should_contain_date_and_time branch from 2db3ee4 to d9b8dee Compare September 1, 2024 17:12
Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

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

Sorry I missed this on the first pass.

//Add the UTC Date and Time to Feedback
sectionTextBuilder.append("Generated on: ");
sectionTextBuilder.append(UTC_FormattedDateTime);
sectionTextBuilder.append("\n");
Copy link
Member

@nicolas-raoul nicolas-raoul Sep 2, 2024

Choose a reason for hiding this comment

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

This should be added to the title, rather than to the body section. So I suggest moving this to around line 49.
Also, to keep it concise, I suggest something shorter like just "on " + the date.

In the end, the title would look like this: Feedback from Nicolas for version 1.2.3 on 2023/12/31

Screenshot 2024-09-02 at 13 47 07

@ujjwal2900
Copy link
Contributor Author

Hi @nicolas-raoul , I have added just the date to the subject just to keep it short instead of adding the full date and time.

@@ -32,11 +35,19 @@ public void init() {
/*
* Construct the feedback section title
*/

//Get the UTC Date and Time and add it to the Title
final SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy", Locale.ENGLISH);
Copy link
Member

Choose a reason for hiding this comment

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

  1. Would you mind making it yyyy/MM/dd as it is a less ambiguous format?

  2. Please append HH:mm:ss as users often report several things on the same day, and having the same title breaks the wikilinks.

So to summarize I think yyyy/MM/dd HH:mm:ss would be the best.

@ujjwal2900
Copy link
Contributor Author

ujjwal2900 commented Sep 12, 2024

HI @nicolas-raoul , Pls review the last commit. I have changes the format as requested.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

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

@nicolas-raoul nicolas-raoul merged commit 9393dda into commons-app:main Sep 13, 2024
1 check passed
rohit9625 pushed a commit to rohit9625/apps-android-commons that referenced this pull request Sep 13, 2024
* Add Date and Time in UTC format to Feedback

* Add UTC date to the Subject instead of adding it to the body

* Change the UTC Date format to yyyy/MM/dd HH:mm:ss

* Minor changes

---------

Co-authored-by: Nicolas Raoul <[email protected]>
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.

Feedback subject should contain date and time
2 participants