question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Locking a Drupal environment (content and/or config)

See original GitHub issue

I would like Lagoon to support the idea of locking environments which is independent of production/development flags.

As a client, I want to make WIP changes in an environments, and be certain that they are protected.

The problem is that Lagoon doesn’t have a standardised official notion of a “locked” environment. So if you look at GovCMS, there should be a way of saying “We’re about to sync the database” or “we’re about to import config” but you should be able to check a value from .lagoon.yml (or whatever) to be sure this is allowed.

My proposal is that there is a documented LAGOON_* environment variables for this purpose.

I sketched out how this might look (with GOVCMS name-spacing) here: https://github.com/govCMS/scaffold-tooling/blob/develop/scripts/govcms-deploy#L8-L12

(OUT OF SCOPE Moving content between environments is not Lagoon’s problem - this is solved in various ways, eg with deploy or entity_pilot modules.)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tobybellwoodcommented, Jan 31, 2020

is this another use case for being able to add and expose tags to Lagoon envs… https://github.com/amazeeio/lagoon/issues/1289

0reactions
bomokocommented, Nov 30, 2022

Hi all, So we’re going through our (not insubstantial) feature request list at the moment, categorizing and closing what doesn’t make sense anymore.

I think that this may have made a lot more sense when Lagoon was more tightly integrated with Drupal, but it feels like with metadata and environment variables this is something that can be enforced by users at a project level.

I’m going to close this for now - but I will raise this in the Dev Experience team - we might want to resurrect this idea as something like a “lagoon recipe” and write up how one might achieve this using Lagoon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Content locking (anti-concurrent editing) | Drupal.org
By node type: This module can be configured to only lock certain content types against concurrent editing. By format: This module can be ......
Read more >
Configuration Read-only mode | Drupal.org
This module allows to lock any configuration changes done via the Drupal admin UI. This can be useful in scenarios where for example ......
Read more >
Clarify what 'locked' means for a config entity and whether it's ...
For fields, all it means is that certain UI operations are prohibited, but the field can still be changed/deleted via API calls or...
Read more >
Services Content Lock Documentation | Drupal.org
This module exposes the main operations of content_lock through Services as a resource, so that content locking can be done over a web...
Read more >
Config whitelist to allow "some" configuration to be ... - Drupal
I have created Config Readonly Filter to solve this very same problem. As these configurations could be site/environment specific, having them ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found