-
Notifications
You must be signed in to change notification settings - Fork 16
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
Introduced a collections helper property on IHypermediaContainer #27
Introduced a collections helper property on IHypermediaContainer #27
Conversation
Reviewed 5 of 5 files at r1. src/DataModel/HypermediaContainer.ts, line 40 at r1 (raw file):
What if they don't have the type set but are nevertheless referenced through the Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion. src/DataModel/HypermediaContainer.ts, line 40 at r1 (raw file): Previously, lanthaler (Markus Lanthaler) wrote…
Not sure which property do you refer to. Hydra does not define any Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion. src/DataModel/HypermediaContainer.ts, line 40 at r1 (raw file): Previously, alien-mcl (Karol Szczepański) wrote…
I'm referring to the Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion. src/DataModel/HypermediaContainer.ts, line 40 at r1 (raw file): Previously, lanthaler (Markus Lanthaler) wrote…
Ugh. I wasn't aware of this. This issue is 4 years old and the spec has not yet been updated! Anyway, I'm not sure whether I understand It could tell the client that all resources in that relation are of type Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion. src/DataModel/HypermediaContainer.ts, line 40 at r1 (raw file): Previously, alien-mcl (Karol Szczepański) wrote…
Yes, the range of the Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion. src/DataModel/HypermediaContainer.ts, line 40 at r1 (raw file): Previously, lanthaler (Markus Lanthaler) wrote…
Ok - I'll add support for this. Where can I find a draft of the spec that has all the latest features? Comments from Reviewable |
Review status: 3 of 15 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. src/DataModel/HypermediaContainer.ts, line 40 at r1 (raw file): Previously, alien-mcl (Karol Szczepański) wrote…
Done. Comments from Reviewable |
Reviewed 12 of 12 files at r2. integration-tests/server/api/context.jsonld, line 47 at r2 (raw file):
Please don't rename hydra properties here in the context (drop the "s" at the end) as it makes stuff unnecessarily complicated. src/DataModel/HypermediaContainer.ts, line 42 at r2 (raw file):
This is not exclusive to entry points so you may want to rename this src/DataModel/Collections/FilterableCollection.ts, line 64 at r2 (raw file):
Wouldn't this return undefined as you don't initialize it to null? Comments from Reviewable |
Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. integration-tests/server/api/context.jsonld, line 47 at r2 (raw file): Previously, lanthaler (Markus Lanthaler) wrote…
It was on purpose. I wanted to conceal as much of the RDF and JSON-LD as possible. Normally, I'd create a JSON structure where properties that normally would hold multiple values would end up with plural names. This is what I'm trying to do with that context. src/DataModel/HypermediaContainer.ts, line 42 at r2 (raw file): Previously, lanthaler (Markus Lanthaler) wrote…
True that - done src/DataModel/Collections/FilterableCollection.ts, line 64 at r2 (raw file): Previously, lanthaler (Markus Lanthaler) wrote…
Oh yes. I'm wondering why my IDE complains about an unused variable initializer. Still, I'd prefer to return Comments from Reviewable |
Reviewed 2 of 2 files at r3. integration-tests/server/api/context.jsonld, line 47 at r2 (raw file): Previously, alien-mcl (Karol Szczepański) wrote…
Then this should be done consistently. All other properties are singular. E.g. Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. integration-tests/server/api/context.jsonld, line 47 at r2 (raw file): Previously, lanthaler (Markus Lanthaler) wrote…
True that. I believe this was due to fact those you mentioned were added at the very beginning Comments from Reviewable |
Can we move on with this PR? Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. Comments from Reviewable |
Reviewed 1 of 5 files at r1, 2 of 12 files at r2. src/DataModel/HypermediaContainer.ts, line 45 at r3 (raw file):
Could you explain src/DataModel/IHydraResource.ts, line 17 at r3 (raw file):
Do we really want src/DataModel/Collections/FilterableCollection.ts, line 65 at r3 (raw file):
Call it premature optimisation but looping over the items seems a bit inefficient. Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. src/DataModel/HypermediaContainer.ts, line 45 at r3 (raw file): Previously, tpluscode (Tomasz Pluskiewicz) wrote…
I've updated code to be clearer about it. Hope it helps. src/DataModel/IHydraResource.ts, line 17 at r3 (raw file): Previously, tpluscode (Tomasz Pluskiewicz) wrote…
This interface is considered as an equivalent of src/DataModel/Collections/FilterableCollection.ts, line 65 at r3 (raw file): Previously, tpluscode (Tomasz Pluskiewicz) wrote…
Hmm. This is not an Array, thus I cannot get the item at the Comments from Reviewable |
Reviewed 1 of 1 files at r4. integration-tests/server/api/context.jsonld, line 47 at r2 (raw file): Previously, alien-mcl (Karol Szczepański) wrote…
I'd prefer them to be exactly the same as in the Hydra vocab but as long as it is consistent I'm fine either way. src/DataModel/HypermediaContainer.ts, line 45 at r3 (raw file): Previously, alien-mcl (Karol Szczepański) wrote…
@tpluscode can we resolve this? Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. integration-tests/server/api/context.jsonld, line 47 at r2 (raw file): Previously, lanthaler (Markus Lanthaler) wrote…
Karol. This is the only comment left. Would be nice to move on with this Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. integration-tests/server/api/context.jsonld, line 47 at r2 (raw file): Previously, lanthaler (Markus Lanthaler) wrote…
Ugh - sorry, I missed that one. Done - it is as in the vocab now. Comments from Reviewable |
Reviewed 1 of 1 files at r5. integration-tests/server/api/context.jsonld, line 47 at r2 (raw file): Previously, alien-mcl (Karol Szczepański) wrote…
Thanks Comments from Reviewable |
Please resolve the merge conflicts |
…Specification/issue-155_EntryPoint_question
Reviewed 1 of 9 files at r6. Comments from Reviewable |
Reviewed 5 of 9 files at r6. Comments from Reviewable |
As mentioned in HydraCG/Specifications#155, I've introduced a helper property to filter out all collections.
This change is