refactor: remove redundant field in sub-routine definition#26
refactor: remove redundant field in sub-routine definition#26
Conversation
|
That wouldn't work for the I think this PR should be disregarded, as we need this in the subroutine definition. I already merged the server PR as I didn't notice you did it this way, by removing the whole parameter from the constructor, so I will add a fix to my pending PR. (I could make a separate PR too, but that would just mess things up even more) |
c071d58 to
95c72ac
Compare
|
Sorry, this PR was supposed to be a draft first. I've changed it now to use the
I think the best solution is to change the server to use
Please don't mix this up, I don't see how putting that in another PR improves the situation. |
|
When you pass In that case, passing Edit: I still see a major problem when removing |
I did this already, but I can remove it if we don't need the change I described in the previous comment. |
But before, the enum constant name from our Java implementation was passed in there. I can't really see how
Makes sense, I can change that.
The change is surprisingly pretty simple, I've done it in this PR: ProvideQ/toolbox-server#44
If we agree to switch to |
Yeah that's fine too
That's a good workaround!
I still think that the enum value itself is the better identifier for general usage (in the server logic), as we have a defined set of values which is way better than comparing string values. For communicating with the website, sure id is good, and avoiding having two different ways to identify a problem type is better anyway. |
…ucture sub routine props handling in SolverPicker
|
@schweikart I did the changes myself to sync everything with the server repo. |
Definitely!
LGTM! I reviewed the changes and tested them with your server PR and it works as expected :) Unfortunately I can't approve this PR as I'm its author, can you review, approve and merge please? |
The
SubRoutineDefinitionhas been refactored to remove redundant information. This PR adjusts to the newSubRoutineDefinitiondata format.Server-Side PR: ProvideQ/toolbox-server#40 (comment)