-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use JQ #38
Use JQ #38
Conversation
Codecov Report
@@ Coverage Diff @@
## main #38 +/- ##
==========================================
- Coverage 63.19% 61.57% -1.62%
==========================================
Files 11 10 -1
Lines 394 380 -14
Branches 91 86 -5
==========================================
- Hits 249 234 -15
+ Misses 114 111 -3
- Partials 31 35 +4
... and 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
For Biolink API and most other APIs, there are comments for each operation with examples (ID to use as input, categories and predicates to use): This operation should return publication info:
|
@rjawesome to further expand this feature, can you please create a place-holder js module, where we can define some common custom jq helper functions, which can be used in jq string. |
Notes: ebi test query works, biolink api publications works |
@rjawesome refactoring looks good to me. In the context of the new issue I just created (since we moved to
|
@rjawesome from the discussion at today's translator team meeting, I think it makes sense to complete this JQ feature in two stages:
|
Mostly done with 1 but need to fix the ebi jq string (cuirrently failing tests). |
Alright Stage 1 should be done. |
Work for Stage 2 started on this pr, on bte-trapi, and on smartapi-kg (all in the |
Note (for me): May want to add standardized variables for edge info that can be used in JQ. For example semmedb transformer needs |
c75deae
to
2375245
Compare
Note that this branch isn't merged with the latest main branch code. Is it trivial to make this update (doesn't break any functionality)? I didn't notice any issues when I merged w/ latest main for my local branch with testing biothings/biothings_explorer#489 (comment). I did this because I noticed the |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I wasn't able to replicate the exact errors you had, however I also saw odd behavior when I went back to check. NOTES:
transformer:
"$ref": "#/components/x-bte-transformers/whole" The other types (from-wrap, from-string) won't resolve properly. |
I hid the comments above, because I realized that I made a silly mistake in my testing....forgot the opening-quotation-mark so I was doing On retesting "JQ in SmartAPI" with the correct
I've put the "JQ in SmartAPI" yamls that I tested here. They worked w/ the basic JQ-work PRs (this and biothings/smartapi-kg.js#61). |
Note: I've pushed a commit just applying a formatting, this'll make merging easier with the typescript/build system migration (either direction). |
Draft PR
Depends on installation of node-jq. Currently tested with a basic PR of BioLink shown below (would be useful to have a request with publications in the output).
For this issue