Skip to content
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 changing database name #588

Open
DavidMStraub opened this issue Dec 12, 2024 · 0 comments
Open

Allow changing database name #588

DavidMStraub opened this issue Dec 12, 2024 · 0 comments

Comments

@DavidMStraub
Copy link
Member

Currently, the database cannot be renamed via Web API.

Note: the database name is stored in name.txt in the tree directory.

Challenges: in single-tree setups, we still use TREE, the name, to pick the right tree, so it doesn't make sense to change the name at runtime.

Options:

  1. Disallow renaming tree in single-tree setup
  2. Deprecate TREE in favour of something like TREE_ID and block the new feature until then - but this would be a breaking change for all users, not great
  3. Introduce a new TREE_ID option and only allow renaming tree if it is set - still requires all users to change their config
  4. Allow using a tree ID for TREE and detect whether it's a name or an ID, allow renaming only if it's an ID - complicated
  5. Remove single-tree setup and TREE config option???

Blocks: gramps-project/gramps-web#527

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant