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

Pad version with zero if shorter than 3 #35539

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

jingcheng16
Copy link
Contributor

@jingcheng16 jingcheng16 commented Dec 18, 2024

Product Description

Technical Summary

The commcare_version in LastSubmission and LastDevice are truncated if the last digit it 0, say "2.54.0" will become "2.54"
When compare version in use "2.54" with latest version "2.54.0", we shouldn't consider it as out of date, we should consider both to be "2.54.0", and it is on the latest version.

Feature Flag

Safety Assurance

Safety story

Automated test coverage

Add test in corehq/apps/builds/tests/test_utils.py

QA Plan

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@jingcheng16 jingcheng16 marked this pull request as ready for review December 18, 2024 22:39
@jingcheng16 jingcheng16 added the product/all-users-all-environments Change impacts all users on all environments label Dec 18, 2024
@jingcheng16 jingcheng16 requested a review from mjriley December 18, 2024 22:44
@jingcheng16 jingcheng16 merged commit d2b417c into master Dec 18, 2024
13 checks passed
@jingcheng16 jingcheng16 deleted the jc/fix-logic-in-is-out-of-date branch December 18, 2024 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/all-users-all-environments Change impacts all users on all environments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants