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

Added return InterMines over a given version #164

Closed
wants to merge 4 commits into from
Closed

Added return InterMines over a given version #164

wants to merge 4 commits into from

Conversation

zrthxn
Copy link

@zrthxn zrthxn commented Apr 4, 2021

As suggested in issue #130, added code to filter InterMines by semantic versions and return only those which match the given condition. Implemented according to this.

Useage

There are 5 condition operators which are

gt (greater than)
gte (greater than or equal to)
lt (less than)
lte (less than or equal to)
eq (equal to)

These are sent with the desired version as follows

GET    http://registry.intermine.org/service/instances?version_api=gte-24
GET    http://registry.intermine.org/service/instances?version_intermine=lt-2.5.23

Caveats

The following things are desired but aren't implemented yet

  • Doesn't yet support alpha,beta etc. in semantic versions (eg: 4.4.12-alpha)
  • Doesn't yet support ranges, although that wouldn't need too much modification

@zrthxn
Copy link
Author

zrthxn commented Apr 7, 2021

"Catch all" in parts of version

Added a line to skip checking a part of the version if the condition includes "x" at that position.

Example

If the condition is gte-2.5.x all versions starting with 2.5 will be returned

@zrthxn zrthxn closed this Jul 3, 2021
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.

1 participant