-
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
Support for ignoring repo specific fields through configurable parameters #109
Comments
If we to support this kind of feature officially, ignoredFields should be added to hash url Otherwise it's not possible to regenerate hash for verification purposes. @RalphTro what's your take on this? |
Hi @dakbhavesh and @sboeckelmann, |
Having this parameter is not necessarily wrong. |
Dear @RalphTro & @sboeckelmann , Posting here the proposed idea we brainstormed for reference:
The above structure ensures that EPCISQueryDocument remains JSON-LD compliant.
Incorporating the above will ensure consistency of hash between captured and query document which is the goal for raising this issue. |
Dear @dakbhavesh , Many thanks! Based on your ideas, I just compiled a concrete example we could use for illustration purposes. Voilà:
Does this resonate with you? |
Dear @RalphTro , In your example above, shall we keep the values of "eventID" & "hashGen:hash" the same to avoid confusion? |
Just a few thoughts:
And yes, @dakbhavesh - I also think, if hash is used for eventID, values should match. Unless we want to add some really funky edge-case example with eventTime, recordTime being ignored, which can be a valid use case for identifying certain duplication issues. |
Hi @sboeckelmann, I agree with your idea to ignore hashGen:* fields by default. For your second point, I am curious, what benefit we will gain by providing an array of event hashes? Wouldn't businesses agree beforehand on supported algorithms? |
@dakbhavesh : I think I now finally understand the purpose of the field @sboeckelmann: As to "what do you think about being able to provide an array of event hashes": I agree with Bhavesh: what is the benefit of this? If there is a need for going for another sha, a company/industry consortium can choose to use it in the |
@RalphTro : always ignore hashGen related attributes
which means these fields don't show up automagically. A client will always be aware of hashGen related implementation details. @RalphTro , @dakbhavesh |
As to hashGen fields: I got your point. If the client specifically requests these fields, I tend to agree with you. (+ considering to add "automagically" to my vocabulary ;-)) As to event hashes array. TBD/need more time to think this through. How do you like the idea to wait at least for a first implementation in industry where multiple hash algorithms are required? |
Re: multi hash array |
Dear @dakbhavesh and @sboeckelmann ,
Report back to the Visibility SMG about this matter once we have implemented it. WDYT? |
I like the idea of reporting back to the SMG, let's discuss with Craig tomorrow. The EPCIS Event Hash get more attention and awareness from the SMG. |
I just got back in the context of the topic :) |
Dear @dakbhavesh , |
Dear @RalphTro , @sboeckelmann , Summarising our discussion here:
Please feel free to add any missing points on top of the above. Also, feel free to ask in case of any queries :) |
Dear @dakbhavesh , |
Hi @RalphTro, I agree with your suggestion to keep the prefix and URL as you suggested. It is a better alternative than some technical name like |
Dear @RalphTro, I am almost there with adjusting logic. Thought to keep you posted on progress. I am going to create a PR soon once sufficient testing and test cases are in place. Thanks for your patience :) |
Dear @RalphTro, I have adjusted the logic to incorporate support for ignoring fields from EPCIS XML document and query documents. Regarding @Echsecutor proposal to add the ignored fields into the NI. I think we should take it up separately as it may make the generated hash look complex. For example, we need to use a fully qualified name in NI for the ignored fields Please share your thoughts. FYI: @sboeckelmann , @Echsecutor |
I suggest that we keep this issue open until we have reached consensus in the course of our next alignment call. |
For now, reached consensus. Additional thought: if EPCIS events need to be processed stand-alone afterwards, the repository-specific fields (indicated in Notwithstanding the latter, in an EPCIS query doc, it makes more sense to actually convey that information once, i.e. in the document (no in each and every event). |
While adding support for generating hash from EPCIS Query Document we observed that query document may be enriched with repository-specific fields like "hash", "transactionId", "captureID", etc. To ensure the consistency of generated hash must ignore such fields. Such fields are hard to know in advance as each EPCIS repository may behave uniquely and have its own nomenclature. Thus, it would be nice to add a parameter that can be used to provide fields to ignore externally.
The parameter may look like below:
Name: ignoreFields
Values: comma separated name of the fields to ignore
--ignoreFields hash,captureID
The text was updated successfully, but these errors were encountered: