-
Notifications
You must be signed in to change notification settings - Fork 24
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
Improve error messages for starting jobs on other orgs datasets #8181
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4f83da0
Improve error messages for starting jobs on other orgs datasets
frcroth bae19f9
Update changelog
frcroth 69d5b43
Remove quotes in messages
frcroth ff0d6d1
Merge branch 'master' into jobs-other-orgs-error-messages
frcroth 5815fab
Provide dataset org from frontend for run Inference job
frcroth 841f8a7
Merge branch 'master' into jobs-other-orgs-error-messages
frcroth 4a36ac8
Merge branch 'master' into jobs-other-orgs-error-messages
frcroth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,7 +138,7 @@ dataLayer.wrongMag=DataLayer “{0}” does not have mag “{1}” | |
dataLayer.invalidMag=Supplied “{0}” is not a valid mag format. Please use “x-y-z” | ||
|
||
zarr.invalidChunkCoordinates=Invalid chunk coordinates. Expected dot separated coordinates like c.<additional_axes.>x.y.z | ||
zarr.invalidFirstChunkCoord="First Channel must be 0" | ||
zarr.invalidFirstChunkCoord=First Channel must be 0 | ||
zarr.chunkNotFound=Could not find the requested chunk | ||
zarr.notEnoughCoordinates=Invalid number of chunk coordinates. Expected to get at least 3 dimensions and channel 0. | ||
zarr.invalidAdditionalCoordinates=Invalid additional coordinates for this data layer. | ||
|
@@ -150,8 +150,8 @@ nml.file.noFile=No file or file with empty content uploaded | |
nml.file.differentDatasets=Cannot upload tracings that belong to different datasets at once | ||
nml.parameters.notFound=No parameters section found | ||
nml.element.invalid=Invalid {0} | ||
nml.comment.node.invalid=Invalid node id of comment {0}" | ||
nml.node.id.invalid=Invalid {0} node id {1}" | ||
nml.comment.node.invalid=Invalid node id of comment {0} | ||
nml.node.id.invalid=Invalid {0} node id {1} | ||
nml.node.attribute.invalid=Invalid node {0} for node id {1} | ||
nml.edge.invalid=Invalid edge {0} {1} | ||
nml.tree.id.invalid=Invalid tree id {0} | ||
|
@@ -321,6 +321,7 @@ job.invalidBoundingBox = The selected bounding box could not be parsed, must be | |
job.invalidMag = The selected mag could not be parsed, must be x-y-z | ||
job.volumeExceeded = The volume of the selected bounding box is too large. | ||
job.edgeLengthExceeded = An edge length of the selected bounding box is too large. | ||
job.convertToWkw.notAllowed.organization = Converting to WKW is only allowed for datasets of your own organization. | ||
job.inferNuclei.notAllowed.organization = Currently nuclei inferral is only allowed for datasets of your own organization. | ||
job.inferNeurons.notAllowed.organization = Currently neuron inferral is only allowed for datasets of your own organization. | ||
job.meshFile.notAllowed.organization = Calculating mesh files is only allowed for datasets of your own organization. | ||
|
@@ -329,10 +330,11 @@ job.globalizeFloodfill.notAllowed.organization = Globalizing floodfills is only | |
job.materializeVolumeAnnotation.notAllowed.organization = Materializing volume annotations is only allowed for datasets of your own organization. | ||
job.noWorkerForDatastoreAndJob = No webknossos-worker supporting the requested job is available for the selected datastore. | ||
job.emailNotifactionsDisabled = Email notifications are not enabled for this job type. | ||
job.renderAnimation.notAllowed.organization = "Rendering animations is only allowed for datasets of your own organization." | ||
job.alignSections.notAllowed.organization = "Aligning sections is only allowed for datasets of your own organization." | ||
job.alignSections.notAllowed.onlySuperUsers = "For now, aligning sections is only allowed for super users." | ||
job.additionalCoordinates.invalid = "The passed additional coordinates are invalid." | ||
job.renderAnimation.notAllowed.organization = Rendering animations is only allowed for datasets of your own organization. | ||
job.alignSections.notAllowed.organization = Aligning sections is only allowed for datasets of your own organization. | ||
job.alignSections.notAllowed.onlySuperUsers = For now, aligning sections is only allowed for super users. | ||
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. I think this one can go, we lifted that restriction |
||
job.additionalCoordinates.invalid = The passed additional coordinates are invalid. | ||
job.trainModel.notAllowed.organization = Training AI models is only allowed for datasets of your own organization. | ||
|
||
voxelytics.disabled = Voxelytics workflow reporting and logging are not enabled for this WEBKNOSSOS instance. | ||
voxelytics.runNotFound = Workflow runs not found | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Add explicit organization validation for inference jobs
While the code validates the dataset belongs to the organization during lookup, it should have an explicit organization check similar to
runTraining
for consistency. This aligns with the PR objective of standardizing organization access checks.dataset <- datasetDAO.findOneByNameAndOrganization(request.body.datasetName, organization._id) ?~> Messages("dataset.notFound", request.body.datasetName) + _ <- bool2Fox(request.identity._organization == dataset._organization) ?~> "job.inferWithModel.notAllowed.organization" ~> FORBIDDEN dataStore <- dataStoreDAO.findOneByName(dataset._dataStore) ?~> "dataStore.notFound"
📝 Committable suggestion