-
-
Notifications
You must be signed in to change notification settings - Fork 921
[WIP] ReferenceType Configuration #351
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
[WIP] ReferenceType Configuration #351
Conversation
…BSOLUTE_PATH if nothing is specified
@FELICITUS don't worry if the StyleCI fails, it cannot pass completely atm. I'm not sure if this should be configuration, To me it would make more sense to have the FQCN for the reference type. But @dunglas is more qualified than me to answer this Hydra question. |
AFAIK relatives IRIs are perfect valid according to JSON-LD and Hydra spec. All available tools implementing these specs are able to deal with relative URLs. Using relative URLs has the advantage of reducing the size of the JSON document (performance, bandwidth...). |
@dunglas yes, relative URIs should be default. However, in my scenario, I need to know the source of an entity, a relative URI was not enough in my case ;) |
Yes it would be nice to have the option and I'll be pleased to merge your marge when finished. A workaround that works too is to change the JSON-LD document until retrieved and before saving it to transform relative URLs to absolute ones. |
@FELICITUS any news about this PR? |
@sroze unfortunately no, I haven't had time to improve it yet. |
@FELICITUS any update regarding this PR? It would be nice to have. |
Unfortunately no, tbh I completely forgot about this. I will put it on my list :) |
@FELICITUS Do you want some help on this ? |
@Simperfit sure, any help is appreciated :) |
@FELICITUS Maybe you should restart from the actual master and ill be glad to help you ;) |
@Simperfit if you have an idea regarding |
I was searching in this way too @FELICITUS but couldn't find anything about it. @sroze Do you have any idea how we can test that in behat ? |
I just came across this issue. It looks quite similar to the pull request I just opened: #751 I am not yet sure what would be the best way to add this feature.. |
@maechler I think this is the right way to go |
I think this should be restarted from existing master, if you want to, feel free to ping me, i'll help ;). |
This is a WIP PR for fixing #350.
Right now, IRIs are relative, which means that it's impossible to tell from which host they come from. This PR attempts to fix that.
Tasks:
reference_type
. The supported values areabsolute_url
,absolute_path
,relative_path
andnetwork_path
, as supported by the UrlGeneratorInterfaceabsolute_path
to ensure BCCollectionNormalizer
uses therequest_uri
as@id
. This must be changed, but I'm not certain what's reasonableabsolute_url
andnetwork_path
as host names change of course, and I don't know how to do a Behat Test with a changing configuration