Skip to content
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

"isNewVersion" is in the wrong spot in event messages #1610

Open
dannylamb opened this issue Sep 9, 2020 · 2 comments
Open

"isNewVersion" is in the wrong spot in event messages #1610

dannylamb opened this issue Sep 9, 2020 · 2 comments
Labels
Type: documentation provides documentation or asks for documentation. Type: question asks for support (asks a question)

Comments

@dannylamb
Copy link
Contributor

Right now, we're stuffing the isNewVersion boolean under the object heading in AS2 messages that get emitted: https://github.com/Islandora/islandora/blob/8.x-1.x/src/EventGenerator/EventGenerator.php#L114

This should be down in the attachment section under content here: https://github.com/Islandora/islandora/blob/8.x-1.x/src/EventGenerator/EventGenerator.php#L155 That section is allowed to be freeform json and doesn't have to comply with https://www.w3.org/TR/activitystreams-core/

After changing that, there'll have to be some updates to Alpaca to pull out that boolean from the new location in the message. For example, here: https://github.com/Islandora/Alpaca/blob/dev/islandora-indexing-fcrepo/src/main/java/ca/islandora/alpaca/indexing/fcrepo/FcrepoIndexer.java#L167

@elizoller
Copy link
Member

so instead of attaching 'isNewVersion' to the $event["object"], attach it to the $data?

@dannylamb
Copy link
Contributor Author

yep. Set the boolean as $data["isNewVersion"] and it should all work out.

@kstapelfeldt kstapelfeldt added Type: documentation provides documentation or asks for documentation. Type: question asks for support (asks a question) and removed documentation labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: documentation provides documentation or asks for documentation. Type: question asks for support (asks a question)
Projects
Development

No branches or pull requests

3 participants