-
Notifications
You must be signed in to change notification settings - Fork 5
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
Bug: identify is not running on Draft ADOs #120
Comments
@DiegoPino, I could not duplicate this issue in any Beta 3 instances I tested/checked. |
@alliomeria thanks so much for testing. Clearly its a thing I 🤕 introduced in the most recent code. This helps a lot. |
@alliomeria this may be the most stupid bug/not bug ever. I tested and tested and could not replicated except on our 1.0.0-RC1 demo of today. So where is the issue? WE "tried" to give the form "defaults" which does not mean that when you are seeing the form the values are actually saved! DOUBLE MEGA FACEPALM Of course previously processed files won't get (as the code is) any new tech metadata because we assumed them processed so you can save and save and nothing. So. Solutions are:
Plus: actually ship with the settings saved... I did not.... strawberryfield.filepersister_service_settings |
Wouldn't the normal approach here be:
|
@patdunlavey thanks. Yes, in Drupal 7 that used to be the most common approach, but because of how config entities work on Drupal 8 (and config sync) that makes consistent checking on defaults a nightmare across multiple modules to manage and also obscures certain operation to the user. In this case I feel we may want to if something is not saved make sure people see it as not saved and also skip the operation of course. Also, E.g Configs can be overridden by other modules but also via configurations YML and the actual $config->get() method does not allow for a default so making sure defaults would be applied when calling would mean a bit of extra code? Its actually something we may want to check all around archipelago, where we are using defaults/ v/s where we need to act/exclude based on presence not presence. Wonder if it would help to have some type of permission by User role that exposes all operations that where executed to the UI. If you have some ideas/preferences about this I'm open to apply changes to your config system forms. Or if this is something you feel you want to tackle even better! Thanks again!! |
I'm afraid my lack of D8 knowledge is showing. Is there no way to define a default value in configuration, e.g. in the web/modules/contrib/strawberryfield/config/schema/strawberryfield.schema.yml file?
|
Ok, one baby step up the learning curve, thanks for your patience... So these configuration values are set in
Can we simply add the missing defaults to this during install?
|
Can we just modify this? https://github.com/esmero/archipelago-deployment/blob/8.x-1.0-beta3/config/sync/strawberryfield.filepersister_service_settings.yml Or is that a bad idea somehow? |
Yes. Exactly! That is the simplest approach for the default deployment, it just needs to be in the RC1 branches. Want to make a pull to 1.0.0-RC1 and 1.0.0-RC1D9? |
That way specs of that particular Docker environment don't get fixed into the code. =) |
@DiegoPino Can/should this issue be closed now that esmero/archipelago-deployment#82 has been closed? Or is there more that you think should be followed up on to handle cases where strawberryfield is not deployed using archipelago-deployment? If so, perhaps that should get an issue that is more broadly defined? |
Thanks! I will keep this open until I figure out how to tell the user (generically) if some value is missing but still show the config. Thinking of use cases like @giancarlobi where all is setup manually basically. |
Closing as fixed. |
Bug
.. and because of that, since the as:structure does get filled up, it never runs, even after publishing. This feels like a regression or a bad mad If() condition. Needs fix before 1.0.0-RC1 is made public
@dmer @alliomeria will fix today
The text was updated successfully, but these errors were encountered: