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

Updating the custom URL for a Bar #295

Closed
proffalken opened this issue Jun 22, 2024 · 4 comments
Closed

Updating the custom URL for a Bar #295

proffalken opened this issue Jun 22, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@proffalken
Copy link

Describe the bug
I have renamed my bar and want to update the custom URL without having to create a new bar and re-add all the ingredients

To Reproduce

  1. Create a new bar and call it "foo's palace"
  2. Go to the bar settings and check that the bar custom URI is http://my.install/bars/foos-palace
  3. Change the name of the bar to "Bar's Bar"
  4. Observe that the custom URI remains http://my.install/bars/foos-palace

Versions:

  • Docker: N/A (running container on k3s)
  • Bar assistant: 3.12.1
  • Meliesearch: 1.6.2
  • Salt Rim: 2.12
@proffalken proffalken added the bug Something isn't working label Jun 22, 2024
@karlomikus
Copy link
Owner

This was intended behavior when I implemented it but I don't remember why exactly :D

I'll re-check it out once more

@karlomikus karlomikus self-assigned this Jun 23, 2024
@proffalken
Copy link
Author

Thanks - is there a command I can run against the database to update it in the meantime?

@karlomikus
Copy link
Owner

You can use the following sql:

docker compose exec bar-assistant sqlite3 storage/bar-assistant/database.ba3.sqlite "update bars set slug = 'my-new-slug' where slug = 'my-old-slug'"

@proffalken
Copy link
Author

Amazing thanks!

karlomikus added a commit that referenced this issue Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants