Skip to content

Definitions browser - Reload definitions on restart #219

Description

@romain-pm

Context / Problem to solve / Design

As a developer, I don't want to access the database to refresh definitions in production

Testable scenarios

Given the server is in production mode
When I go to the definitions browser
Then there is a button I can click on "Refresh definitions on next server restart"

When I click on it
Then I get a confirmation modal: "The definitions will be reloaded from all cnd files in the modules during the next server restart (entries in table jahia_nodetypes_provider will be removed)"
And internally a flag is set
And the button is replaced by a label "definitions will be reloaded on next server restart"
And on next restart, the table jahia_nodetypes_provider is cleared
And definitions are reloaded

Once the flag is set, if I refresh the page, then I see the label, not the button

Test Strategy

None? How to test with restart?

Tech Notes

  • What to do if several versions of a module deployed
  • What happens if only a browsing node restarts? Only the processing?
  • Where to store the flag ? cfg?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions