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

Ssrc targeting numeric version fixes #2656

Merged
merged 4 commits into from
Aug 1, 2024
Merged

Conversation

kjelko
Copy link
Contributor

@kjelko kjelko commented Jul 31, 2024

Address minor bug fixes in numeric version handling

@kjelko kjelko requested a review from erikeldridge July 31, 2024 15:58
@kjelko kjelko marked this pull request as ready for review July 31, 2024 15:58
@@ -293,6 +293,9 @@ function compareNumbers(
return predicateFn(actual < target ? -1 : actual > target ? 1 : 0);
}

// Max number of segments a numeric version can have. This is enforced by the server as well.
const MAX_LENGTH = 5;
Copy link
Contributor

@erikeldridge erikeldridge Jul 31, 2024

Choose a reason for hiding this comment

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

Thinking: five segments deviates from the semver spec, but consistency w the backend is more important, since RC is cross-platform.

@kjelko kjelko merged commit b0e824d into ssrc-targeting Aug 1, 2024
10 checks passed
@kjelko kjelko deleted the ssrc-targeting-bugfixes branch August 1, 2024 11:52
kjelko added a commit that referenced this pull request Aug 20, 2024
* refactor numeric version parsing logic and add more test cases

* run lint

* test cases for max num segments

* run lint on tests

---------

Co-authored-by: Kevin Elko <kjelko@google.com>
kjelko added a commit that referenced this pull request Sep 5, 2024
* Initial set up and evaluation logic for server side custom signals (#2628)

initial skeleton for custom signal evaluation logic

---------

Co-authored-by: Kevin Elko <kjelko@google.com>

* Add logic for remaining custom signal operators (#2633)

* initial skeleton for custom signal evaluation logic

* adjust some formatting

* remove extra curly brace

* run lint

* Run apidocs

* Split EvaluationContext into UserProvidedSignals and PredefinedSignals

* rerun apidocs

* add logic for remaining custom signal operators

* more test cases

* test cases for numeric operators

* update tests to be way more robust and implement handling for a few edge cases

* update some comments

---------

Co-authored-by: Kevin Elko <kjelko@google.com>

* Ssrc targeting numeric version fixes (#2656)

* refactor numeric version parsing logic and add more test cases

* run lint

* test cases for max num segments

* run lint on tests

---------

Co-authored-by: Kevin Elko <kjelko@google.com>

* fix test ordering

* Export signal types and rerun apidocs

* update docstrings

* uber minor comment fix

---------

Co-authored-by: Kevin Elko <kjelko@google.com>
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