-
-
Notifications
You must be signed in to change notification settings - Fork 63
[14.0][FIX] Remove index_prefix_name from abstract model #79
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
Conversation
@sebastienbeau the main reason: server.env fails to find the field conf for the specific model. |
@simahawk thanks for your feedback I will investigate more and try to fix server env directly. |
15b711e
to
4550b54
Compare
@simahawk it's possible to have an example of server env config that you use for elastic ? so I can test it correctly ? |
|
Thanks |
After some battle testing I think we should remove this "hack" of related field, because it's broken. Indeed if you try the following
The value on the se_backend is set inside the field "server_env_defaults" when you open the se_backend_elasticsearch So when you change the config
The value on the se_backend is set inside the field "server_env_defaults" is still "foo" and it will be updated when you open the se_backend_elasticsearch So I propose to remove this code and to use the following config
With that config, it work. The only issue is that the field "index_prefix_name" is not in readonly, it's a bug in server-env, I will fix it |
4550b54
to
1368205
Compare
@simahawk what do you think ? |
@sebastienbeau are you 100% that this works? Because I'm kind of sure it didn't work when I tested it locally, but it was on v13. |
I test it and it was working correctly locally. |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
When installing the optional module server_environment_data_encryption.
If you create an elastic backend and save it (without creating index) the index_prefix_name is correctly saved inside a data_encrypted object linked to the se.backend.
Then if you add an index, it will try to read the index_prefix_name on the related "se.backend.elastic" and break everything (index name are always empty).
I would like to understand why we have to redifine the field index_prefix_name on the se.backend.spec.abstract.
I will try to spend more time on it (for now I can live with my fix).
@simahawk can you try if you still have the issue on your side if I remove the code on V14? If yes how can I reproduce it ?