Skip to content

feat: enable proper opening hrs update#85

Open
kingazm wants to merge 1 commit intomainfrom
restaurant-edit
Open

feat: enable proper opening hrs update#85
kingazm wants to merge 1 commit intomainfrom
restaurant-edit

Conversation

@kingazm
Copy link
Copy Markdown
Collaborator

@kingazm kingazm commented Apr 15, 2026

📄 Pull Request Description

Please fill out each section below.
The goal is that reviewers can understand everything without reading the code.


🧩 What was changed?

Overwrote the default (from @Setter annotation) opening hours setter to enable proper removal and addition of new/updated opening hours.


💡 Why was it changed?

Previous version caused bugs when trying to update different opening hours per different day (what JUCanEat/react-frontend#115 is adding in UI).


⚙️ How was it implemented?

Simple change from default setter to one with safe delete before any opening hours update update, keeping the list intact.


⚠️ Side Effects or Risks

None that I am aware of, besides frontend working properly:)


✅ Checklist

  • All 4 sections above are clearly filled out
  • Tests and documentation updated - tested manually & with frontend update

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

Successfully merging this pull request may close these issues.

1 participant