Page MenuHomePhabricator

[lib] Add hasMinStateVersion
ClosedPublic

Authored by michal on Jul 10 2023, 10:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 23, 5:29 AM
Unknown Object (File)
Sat, Mar 22, 10:59 PM
Unknown Object (File)
Mar 17 2025, 1:25 PM
Unknown Object (File)
Mar 17 2025, 1:25 PM
Unknown Object (File)
Mar 17 2025, 1:24 PM
Unknown Object (File)
Mar 17 2025, 1:14 PM
Unknown Object (File)
Feb 27 2025, 12:27 AM
Unknown Object (File)
Feb 13 2025, 6:01 PM
Subscribers

Details

Summary

ENG-4350

Added so landing the id schema migration stack doesn't break dev env. Wasn't sure if it should be merged with hasMinCodeVersion but I can't imagine a scenario where we want to check both code version and state version, and it would complicate the logic a bit so I decided against it. But I'm open to changes.

Test Plan

Tested with the next diff

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil added inline comments.
lib/shared/version-utils.js
39–59 ↗(On Diff #28557)

wondering if there is an easy way to create a generic function and put shared logic there as hasMinCodeVersion, but probably this will make the code more complicated and less readable, so this also looks okay

This revision is now accepted and ready to land.Jul 11 2023, 2:10 AM
lib/shared/version-utils.js
39–59 ↗(On Diff #28557)

I tried to generalise the code but it always made the logic more complicated so I don't think it's worth it.