-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: Store iconUrl in workspace.data #102
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested it, but the code looks good and clean!
Thank you @orgrimarr !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haven't tested.
Just tested this and it seems not to be working. I'll investigate further |
bc6eb86
to
23cfbad
Compare
Just changed the logic to add a column to the database. I think that way the code is way cleaner We need to reproduce this change to the internal server as well |
agreed that it can be cleaner, but then as of this release, we will not be backwards-compatible with the other servers. Is that acceptable for us and the end users? Should we not ask for a poll in the Discord before we make such a breaking decision?
yes, if we decide to go ahead with this, then the same change has to be done in the internal-server of the main repo AND we will need to do an in-tandem release of both the client and server at the same time. (Maybe we can release the server earlier - just got out of bed, and haven't thought that through) |
I think we should, yes. Nevertheless, I feel that several things might be broken with Franz and Ferdi server (as we probably made some change with the Adonis migration that broke it). Otherwise, if you feel like we should store it inside the data object, I can find a way to make it work and also (hopefully) that doesn't break backward compatibility with Franz and Ferdi.
I tried to reproduce the changes I made here in the internal server but I wasn't able to get the migrations to work... If we move with the approach of adding a new column would you be able to help me on that? If we store the iconUrl in the data column then disregard what I said previously... I'm ok with this decision as well 😁 we just need to refactor the Ferdium-app PR as well to account for this change. |
Thought I don't have a clear overview of ferdium architecture but, Is this really a breaking changes to add a new column ? If I understood correctly, the contract between ferdium client and backends are the API. Looking at the current API implementation state. New fields are ignored. So I should not break others backends. So, if there is a breaking, it's at the API level, not the database schema level. |
Technically, you are 100% correct. Extra fields/columns will be ignored. Consider this scenario
|
23cfbad
to
d61be09
Compare
Save iconUrl field within workspace.data
See ferdium/ferdium-app#1240