-
Notifications
You must be signed in to change notification settings - Fork 74
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
Store and return in the API iris of source files when copying #4618
Changes from 5 commits
db765b5
000bdef
b782d4b
9198691
aa8ef73
58c3302
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,8 @@ object FileEvent { | |
rev: Int, | ||
instant: Instant, | ||
subject: Subject, | ||
tag: Option[UserTag] | ||
tag: Option[UserTag], | ||
sourceFile: Option[ResourceRef] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for missing it earlier but we also need the original source project to be able to properly identify the original file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm the field contains source project in the integration test 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh ok, it's because the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @imsdu the purpose of this method seems to be exactly what I'm using it for - creating a resource ref that contains the full Iri with project information. It works as expected. I'm not sure I see anything wrong with it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is slightly different, this is meant for expanding segments in the url. |
||
) extends FileEvent | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to use
ResourceRef
directly here, I see thatFileId
useIdSegmentRef
Those are meant to be used for segment in the api enpoint where the
Iri
can be compacted.The source file being in a payload, you should be able to use
ResourceRef
directly and make things simpler