Closed brdiep113 closed 9 months ago
The functionality for saving should be complete now! Last thing before I finish this is to make sure that the error messages are correct for the cases we discussed. I lost the note I left for it so if @kchall you could make sure it's working as intended that'd be great!
Okay, @brdiep113 (and @kvesik so you know not to worry about checking this yet):
There seem to be a few issues, both with the error messages as you surmised and also with the actual functionality.
Error message issues:
Functionality issues:
@brdiep113 Thanks for continuing to work on this! It looks like currently, the error message issues are resolved (thanks!), but the saving functionality issue is still a problem. Are you still working on this, or would you like to just be done with it and have me re-assign it?
@brdiep113 Thanks for continuing to work on this! It looks like currently, the error message issues are resolved (thanks!), but the saving functionality issue is still a problem. Are you still working on this, or would you like to just be done with it and have me re-assign it?
Still working on this! I'm tracking down the specifics of module saving since it seems like saving into an existing module is not working.
@brdiep113 see Sign.updatemodule()
Sorry for the really long delay @kchall @kvesik I think I got the saving to work correctly now! Let me know if the functionality works as expected!
Also just upon resolving this issue, not sure if this should be a new issue but I think we can rewrite Sign.updatemodule() to be much cleaner and work for all the modules.
Previously
Rewritten to be more general and function the same for all module types. Didn't do much testing so I don't know if this will work for all our modules but from my first look it looks like all we do is confirm for all attributes of the module type, that we overwrite the current with the updated if they differ:
Which should prevent us from having to do moduletype checks and make this extendable in the future.
@brdiep113 Thanks, this looks to be working correctly now as far as I can tell! Yay!
I will let @kvesik weigh in on the proposed revision to Sign.updatemodule().
In the meantime -- thank you so much for your work on the project!
Issue #75 Orientation module unlocked, still confirming that module options can be appropriately loaded and saved.