Closed pmconne closed 1 month ago
EditableWorkspaceContainer.createDb
uploads a new empty db to the cloud, then tries to getEditableDb
, which throws because the db is "published", telling you you must create a new version to edit it.
Similar problem with createNewWorkspaceContainer
, which uploads a new, empty default WorkspaceDb that can only be edited by creating a new version of it.
I would like to propose new functionality where prerelease versions of WorkspaceDb
s can be edited, even after being published (skipping the "copied" check as @kabentley described). Justification being prerelease versions are:
This could also solve this Issue if new Dbs were created with 0 as the major version. Users would then need to publish the 1.x version when they've added their desired resources. I dont really have strong justification for this other than it solves the "create then immediately version" issue and its strange to have a flag that can totally circumvent the entire versioning and immutability features of workspaces.
I can raise a PR for these changes
_Originally posted by @pmconne in https://github.com/iTwin/itwinjs-core/pull/6646#discussion_r1630231737_