-
Notifications
You must be signed in to change notification settings - Fork 1
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
Artifacts Store (without Metadata) #185
base: develop
Are you sure you want to change the base?
Conversation
… length to request header
inspect() | ||
} | ||
|
||
processAndSubmitUserQuery(requestContext, prefixes["mor-artifact"]!!, ARTIFACT_QUERY_CONDITIONS.append { |
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.
processAndSubmitUserQuery function will need to support prefixes["mor-artifact"], suggest fix after merging
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.
remove this
|
…EE/flexo-mms-layer1-service into feat/artifact-store-metadataless-tests Pull in auth fixes for StoreRead.kt
…ss-tests Feat/artifact store metadataless tests
@@ -23,6 +23,60 @@ suspend fun GspLayer1Context<GspReadResponse>.readModel(refType: RefType) { | |||
} | |||
} | |||
|
|||
val authorizedIri = "<${MMS_URNS.SUBJECT.auth}:${transactionId}>" |
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.
The added things here are from a borked merge from develop, can just take them out
*/ | ||
fun Route.storeArtifacts() { | ||
// all artifacts | ||
storageAbstractionResource("$ARTIFACTS_PATH/store") { |
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.
remove store
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.
discussion on getting metadata vs store:
remove /store
add query param for download for get, default is to enumerate with content-type turtle with content negotiation in future
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.
would extend to get in single artifact
|
||
// state of an artifact | ||
head { | ||
// headArtifact() |
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.
just do condition checks
Replaces #175 .
This PR implements the following two endpoints for storing and retrieving arbitrary resources under a given repo:
/orgs/{orgId}/repos/{repoId}/artifacts/store
/orgs/{orgId}/repos/{repoId}/artifacts/store/{artifactId}
This change also introduces a new set of object-centric permissions for CRUD'ing Artifacts. Therefore, the
m-graph:AccessControl.Definitions
graph needs to be updated with the new permissions, and them-graph:Schema
graph should also be updated with the new triples (though this graph currently has no effect on functionality).TODO: