-
Notifications
You must be signed in to change notification settings - Fork 23
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
Allow renaming datasets & dataset with duplicate names #8075
base: master
Are you sure you want to change the base?
Conversation
…ir dataset addressing scheme
… the check for already existing name)
…gaId - Includes moving ObjectId to uitls package
…store & add legacy routes - Undo renaming DataSourceId to LegacyDataSourceId
…ow-dataset-renaming
@coderabbitai pause as pr it tool large anyway |
@MichaelBuessemeyer: Understood, I will pause the automatic reviews for this PR. ✅ Actions performedReviews paused. |
I think this should be ready to go now. In case you notice some errors please tell me 🙏 |
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.
Really cool stuff! I had a look at the backend changes and added a couple of comments.
Most things are pretty small. Two bigger things I noticed
- I’m not really sure about the reserveUpload protocol. It seems pretty involved, with identical fields being sent back and forth, with some values filled in remotely. Maybe we can simplify this, possibly using multiple requests
- Looks like URIs with normalized name and id are not yet used? At least the OpenGraphService doesn’t seem to parse URIs in that way. Did you build that into the frontend? If not, did you talk to Norman about this? (I believe he had wished for this feature?)
I did not do any testing in this review round. I already tested a little earlier, and will do another round of testing in a later iteration.
...ssos-datastore/app/com/scalableminds/webknossos/datastore/models/datasource/DataSource.scala
Show resolved
Hide resolved
} | ||
|
||
object DataSourceId { | ||
implicit val dataSourceIdFormat: Format[DataSourceId] = Json.format[DataSourceId] | ||
object DataSourceId extends JsonImplicits { |
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.
is the extends JsonImplicits
really needed? Do you know what is used from there?
@@ -51,23 +54,28 @@ object ReserveManualUploadInformation { | |||
|
|||
case class LinkedLayerIdentifier(organizationId: Option[String], | |||
organizationName: Option[String], | |||
// Filled by backend after identifying the dataset by name. Afterwards this updated value is stored in the redis database. |
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.
I’m not really happy with this protocol of sending most of the reserve info back and forth. I feel like we need to be very careful now about what info (before or after) we are using in which spot. Maybe it would be clearer if we send multiple requests, so that each request has a clear concern (reserve, get unique names, etc). I don’t really have a clear plan in mind yet. Maybe let’s talk about this in person again.
…ow-dataset-renaming
Further Notes:
URL of deployed dev instance (used for testing):
Steps to test:
TODOs:
organization_name
in worker toorganization_id
. see Rename organization_name to organization_id in worker args #8038LinkedLayerIdentifier
still uses the datasetName as an identifier[ ] the datasetThe dataset seems to be broken. Could reproduce this on other branchesC555_tps_demo
has quite some bucket loading errors. Unsure why some buckets do not workDatasetURIParser
Issues:
(Please delete unneeded items, merge only when none are left open)