ec-jrc / re3gistry

Re3gistry is a reusable open source solution for managing and sharing ‘reference codes’, ensuring semantic interoperability across organisations.
European Union Public License 1.2
29 stars 23 forks source link

Overriding new edits on landing page #259

Open MartinTuchyna opened 1 year ago

MartinTuchyna commented 1 year ago

Dear Re3gistry team, after new Docker installation initial description of Registry was provided as visible on this instance: https://registry.stage.geocloud.sk/registry

01

afterwards, effort to edit some parts, were made and successfully saved as on this snap:

02

Despite this, still previous content is visible on the frontend. After we have created also other content (new registers, inc. EN versions) initiach changes were reflected on the frontend, but consequent edits are not visible on the frontend.

Small observation: When you access the url https://registry.stage.geocloud.sk/registry - first 2 seconds you can see new values as for example label with new value "INSPIRE systém registrov" as on this snap

03

but than it is back with the label value "Geocloud register".

04

With this issue, we simply can not change anything once entered in Re3gistry.

oruscalleda commented 1 year ago

Hi @MartinTuchyna,

I'll take a look at this problem. At first glance, it looks like some kind of cache/language issue is causing this, so I'd like to ask a few questions:

From what I understand, initially the changes you made were not visible, then you added some content and your changes are showing? Then once you added new changes, did it stop working again?

Is the Geocloud registry label displayed after upload the English label of the registry ("INSPIRE systém registrov")?

I'll try to reproduce your issues in our environment and let you know what I find, probably asking for your configuration files so I can accurately test this issue.

Thank you for your feedback.

PetoP commented 1 year ago

Hi @oruscalleda,

From what I understand, initially the changes you made were not visible, then you added some content and your changes are showing? Then once you added new changes, did it stop working again?

No, first change we did was renaming of main registry label (originally defined during installation) and since then we are experiencing reported behavior.

Is the Geocloud registry label displayed after upload the English label of the registry ("INSPIRE systém registrov")?

English label was defined after finishing the installation process. We experience no issues with english label (maybe if we would change it we would?).

Steps to reproduce should be:

  1. clean installation of Re3gistry,
  2. systems languages were chosen slovak and english,
  3. master language was chosen slovak,
  4. as Label 'Geocloud register' was used (I guess you may also use 'old label' here),
  5. after installation was finished, we decided to change original label to new value 'INSPIRE systém registrov' (I guess you may also use 'new label' here),
  6. we defined english label of the registry,
  7. when loading page of registry in slovak language, first new label is shown, but after short time it is changed back to old one.

Also seems like cache problem for me, however it behaves the same after clearing browser cache and on different browser instances, so I would suspect some cache on server side.

I have also noticed that new label changes back to old label after processing response of this call: https://registry.stage.geocloud.sk/registry/rest?uri=http://registry.stage.geocloud.sk/registry&lang=sk&format=jsonc&status=

When inspecting response I can see that old label is used there and it seems that this triggers label re-rendering on the website. So I guess question is why this response contains old label?

Thanks a lot!