Pin aiidalab version - #145
Conversation
63e3cc3 to
ef96325
Compare
|
@yakutovicha we pin to |
yes |
I just release 26.2.0 so you should be able to bump it here. :-) |
|
Unfortunately the registry build is still failing even after the aiidalab update. This will need probably more work on the aiidalab package side, probably adding citation field in the Jason schema? I am not very familiar with that code. |
I see. Indeed, aiidalab/registry/schemas needs an update to include the new key. A bit convoluted that the schema of the registry resides in the AiiDAlab repo. TBD perhaps. Anyhow, I'll open a PR there to update the schema. Once approved/merged, I guess we'll need to release AiiDAlab again and bump here. |
|
Hmm, I'm not sure why this isn't working. I temporarily point to my fix branch in aiidalab as a dependency, where the |
|
I don't see anything obviously wrong unfortunately. I'd recommend running the build locally and tracing where is the schema validation happening (and where does it actually get the schema). |
UpdateIn {
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/aiidalab/aiidalab/v21.10.0/aiidalab/registry/schemas/apps.schema.json",
...Unclear why this was done. Updating the version gets us through the current validation error, but then runs into another validation error that is unfortunately too vague:
Trying to debug... |
|
@danielhollas I realize that maybe we don't need to implement any of this here. I see that the QE app has an |
|
Oh, very good point! Indeed updating in QeApp should be done. I guess updating it also here would have the advantage that it would (maybe??) apply to all versions? But unclear if we care. |
|
Oof, that version pin is unfortunate. :-( you'll now run into all the unrelated errors that were merged in the past and not noticed because of it. :-( as you can see, this part of the stack is not touched often (for understandable reasons) |
Yeah man, this part sucks. But let's just get it through for now (not this PR, the one in AiiDAlab to update the schemas). Then we can discuss. |
d9538e9 to
e63a0c2
Compare
|
@danielhollas so I think we might want to be careful here. Currently, for a nicer format, the citation is an HTML string (see result in PR description). But to correctly render the citation as HTML, we would need to do The easy out is to reduce citations to simple strings, but that degrades user experience, as it will not support links (e.g., to papers). Maybe a compromise could be a string citation + a citation string URL (to be safely rendered in an anchor tag). Thoughts? |
64c511b to
06e4cf7
Compare
|
@danielhollas so this again will fail the tests for the same reason, but we now know it works. All that remains is agreeing on the pinning strategy (aiidalab/aiidalab#505). Note that this PR reduced down to just an aiidalab version pin update, as the citation is fully handled on the QE app side. |
danielhollas
left a comment
There was a problem hiding this comment.
Thanks, LGTM, feel free to go ahead with this once you make a patch release of aiidalab.
06e4cf7 to
a780eb2
Compare
Pinning
aiidalab==26.05.2to get the new schemas including the new citations field.