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

fix(pretty-date): plural form when the value is 1 #20619

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

BreadGenie
Copy link
Member

@BreadGenie BreadGenie commented Apr 7, 2023

Fix the pretty_date utility function providing plural form of units with value 1

image

@BreadGenie BreadGenie requested review from a team and shariquerik and removed request for a team April 7, 2023 10:13
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label Apr 7, 2023
@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Merging #20619 (7405003) into develop (cd670bf) will decrease coverage by 0.01%.
The diff coverage is 50.00%.

❗ Current head 7405003 differs from pull request most recent head cf90314. Consider uploading reports for the commit cf90314 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #20619      +/-   ##
===========================================
- Coverage    63.85%   63.85%   -0.01%     
===========================================
  Files          758      758              
  Lines        68713    68719       +6     
  Branches      6197     6197              
===========================================
+ Hits         43879    43882       +3     
- Misses       21323    21326       +3     
  Partials      3511     3511              
Flag Coverage Δ
server 68.82% <50.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@ankush ankush added the Skip CI Doesn't run Ci for this PR. label Apr 11, 2023
@ankush ankush merged commit 6248d8f into frappe:develop Apr 11, 2023
@ankush ankush added backport version-13-hotfix backport version-14-hotfix backport to version 14 and removed add-test-cases Add test case to validate fix or enhancement labels Apr 11, 2023
ankush pushed a commit that referenced this pull request Apr 11, 2023
ankush pushed a commit that referenced this pull request Apr 11, 2023
(cherry picked from commit 6248d8f)

Co-authored-by: Bread Genie <63963181+BreadGenie@users.noreply.github.com>
@BreadGenie BreadGenie deleted the date-fix branch April 11, 2023 05:35
ankush pushed a commit that referenced this pull request Apr 11, 2023
ankush pushed a commit that referenced this pull request Apr 11, 2023
(cherry picked from commit 6248d8f)

Co-authored-by: Bread Genie <63963181+BreadGenie@users.noreply.github.com>
frappe-pr-bot pushed a commit that referenced this pull request Apr 11, 2023
# [14.32.0](v14.31.0...v14.32.0) (2023-04-11)

### Bug Fixes

* also build jsx files ([#20624](#20624)) ([#20628](#20628)) ([01f4c38](01f4c38))
* better permission error for query_report ([#20643](#20643)) ([#20647](#20647)) ([33be129](33be129))
* change z-index of freeze component to make it appear above all components ([f6ebae9](f6ebae9)), closes [#20538](#20538)
* child row form should be above freeze screen ([8d4402e](8d4402e))
* Consider global default in user perm ([87e1aee](87e1aee))
* Consider user perimission default in get_user_default function ([24f6931](24f6931))
* dont create communication for auto repeat notification ([#20606](#20606)) ([#20611](#20611)) ([e9fc2ae](e9fc2ae))
* german translation of workflow state ([#20609](#20609)) ([#20616](#20616)) ([4d7a080](4d7a080))
* **grid row:** fix prettier hook check ([583e1d4](583e1d4))
* **grid row:** fix update_docfield_property function not updating grid row ([a2e9cc0](a2e9cc0))
* improved validation in `add_comment` ([#20520](#20520)) ([4d920fa](4d920fa))
* **ListView:** Evaluate sort_field sort_order within listviews based on DocTypes Definition ([#20482](#20482)) ([b560ccd](b560ccd))
* log requests even if no response ([#20638](#20638)) ([#20640](#20640)) ([a43c11e](a43c11e))
* minor oauth doctypes enhancements ([#20613](#20613)) ([75300f7](75300f7))
* **pretty-date:** plural form when the value is 1 ([#20619](#20619)) ([#20642](#20642)) ([7f6a557](7f6a557))
* track workspace changes ([#20649](#20649)) ([#20650](#20650)) ([5f54325](5f54325))
* validate if doctype exists before syncing customisations (backport [#20598](#20598)) ([#20645](#20645)) ([9a39bf8](9a39bf8))

### Features

* make report name translatable ([#20608](#20608)) ([#20618](#20618)) ([ed49e83](ed49e83))

### Performance Improvements

* Don't re-initate sessions in realtime.py ([#20577](#20577)) ([7480b86](7480b86))
frappe-pr-bot pushed a commit that referenced this pull request Apr 11, 2023
# [13.53.0](v13.52.0...v13.53.0) (2023-04-11)

### Bug Fixes

* allow `reset_otp_secret` only if Two Factor Auth is enabled (backport [#20506](#20506)) ([#20560](#20560)) ([e8025a4](e8025a4))
* better permission error for query_report ([#20643](#20643)) ([#20646](#20646)) ([d972af8](d972af8))
* change z-index of freeze component to make it appear above all components ([1878b87](1878b87)), closes [#20538](#20538)
* child row form should be above freeze screen ([9201e84](9201e84))
* client script add to instead of replace ([0c7ac16](0c7ac16))
* client_script default value ([9ed7851](9ed7851))
* german translation of workflow state ([#20609](#20609)) ([#20615](#20615)) ([3769bdf](3769bdf))
* **grid row:** fix prettier hook check ([9309687](9309687))
* **grid row:** fix update_docfield_property function not updating grid row ([558f908](558f908))
* **ListView:** Evaluate sort_field sort_order within listviews based on DocTypes Definition ([#20482](#20482)) ([ba3cf84](ba3cf84))
* log requests even if no response ([#20638](#20638)) ([#20639](#20639)) ([ae4f7dd](ae4f7dd))
* no optional chaining in v13 ([d08627b](d08627b))
* **pretty-date:** plural form when the value is 1 ([#20619](#20619)) ([#20641](#20641)) ([4d6b776](4d6b776))
* validate if doctype exists before syncing customisations ([#20598](#20598)) ([#20644](#20644)) ([32ba65f](32ba65f))

### Features

* add context to confirm dailog ([0e21299](0e21299))
* add context to prompt dialog ([1bbf9c9](1bbf9c9))
* make report name translatable (backport [#20608](#20608)) ([#20617](#20617)) ([a92e69e](a92e69e))
* **minor:** log datetime in worker log (backport [#20414](#20414)) ([#20569](#20569)) ([dccb6af](dccb6af))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 Skip CI Doesn't run Ci for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants