-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor(replies): replace segment button to icon buttons #96
Conversation
I don't quite get the renaming: it's only partially done, as the table still has the previous name, so it only adds a layer of indirection. Is it really needed at this stage? I understand the code is not that good, and for sure I could have done some things better in the initial modelling, but at this point, does such a refactoring really help? |
My bad, the search/replace did not work properly... 🤦 To answer your question about whether the refactoring is needed, I could not do it in any simpler and faster way without being confused all the time what was it that I was touching: the default recurrence rule? the reply option of the default recurrence rule? the reply option of the instance of the default recurrence rule? etc... |
5d61c02
to
128a9fb
Compare
Yes we have many in the production database as I already synced the Firebase db in preparation of the old app migration. Furthermore, keep in mind that due to the current setup I. Supabase the name of the table IS the API. Changing a table name is a breaking change, and in order to support existing clients a table must be created with the previous name. I never tested this though, so I'm not sure if all queries will work |
In that case, I see two options:
I am kind of thinking to go for option 1. What do you think? |
128a9fb
to
62e7e2b
Compare
Keeping the name of the table is the easiest option. But if we keep the name of the table, then it doesn't make sense to start renaming other parts related to it, or we'll have an inconsistent codebase. And consistency is more important than good names.1 Footnotes |
If consistency and care for the next developer are the principal arguments on the table for the above refactor, then it definitely makes sense to do the renaming. |
No: priority number 1 is users - not us. |
Exactly, I totally agree with you with the last statement! |
c728f4c
to
367df19
Compare
No description provided.