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

Peg the UI version to the server version #8948

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Jan 15, 2025

Motivation and context

The only reason to display separate UI and server version (IMO) is that sometimes they can diverge due to deployment issues, and the information can help with diagnostics. So it seems much more useful to use the same version numbering as for the server, since:

  • This makes it much easier to see whether a divergence exists.

  • We can automate updates to it, eliminating annoying busywork for developers.

  • We don't need to show multiple versions for different UI components, simplifying the code and the UI.

How has this been tested?

Manual testing.

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary 😉
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

The only reason to display separate UI and server version (IMO) is that
sometimes they can diverge due to deployment issues, and the information
can help with diagnostics. So it seems much more useful to use the same
version numbering as for the server, since:

* This makes it much easier to see whether a divergence exists.

* We can automate updates to it, eliminating annoying busywork for developers.

* We don't need to show multiple versions for different UI components,
  simplifying the code and the UI.
Copy link

@SpecLad SpecLad marked this pull request as ready for review January 15, 2025 17:04
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.87%. Comparing base (f215090) to head (121a013).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8948   +/-   ##
========================================
  Coverage    73.86%   73.87%           
========================================
  Files          416      416           
  Lines        44413    44410    -3     
  Branches      3993     3993           
========================================
+ Hits         32804    32806    +2     
+ Misses       11609    11604    -5     
Components Coverage Δ
cvat-ui 78.39% <ø> (+0.02%) ⬆️
cvat-server 70.06% <ø> (ø)

@SpecLad SpecLad merged commit f369906 into cvat-ai:develop Jan 17, 2025
42 checks passed
@SpecLad SpecLad deleted the rm-ui-versions branch January 17, 2025 09:28
@cvat-bot cvat-bot bot mentioned this pull request Jan 27, 2025
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.

3 participants