Skip to content
Snippets Groups Projects

Issue #3531838 by rduterte: Add path include/exclude support warning control

Issue #3531838 by rduterte: Add path include/exclude support warning control
All threads resolved!

Closes #3531838

This adds a setting to hide the config warning on specific admin paths using the request_path condition plugin. Supports wildcards and an optional toggle to switch between include/exclude behavior.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Rodel Duterte added 1 commit

    added 1 commit

    • 924ea860 - Issue #3531838 by rduterte: Add path include/exclude support warning control

    Compare with previous version

  • Rodel Duterte added 1 commit

    added 1 commit

    • 78b73584 - Issue #3531838 by rduterte: resolve phpcs warnings and refactor path warning control

    Compare with previous version

  • Rodel Duterte resolved all threads

    resolved all threads

  • Rachel Lawson added 1 commit

    added 1 commit

    • 8f1bc4f4 - Adding language changes as suggested in #13

    Compare with previous version

  • Rodel Duterte added 1 commit

    added 1 commit

    • a1543863 - Issue #3531838 by rduterte: Refactor Config Warning to support multiple condition plugins

    Compare with previous version

  • Rachel Lawson
  • Rodel Duterte added 1 commit

    added 1 commit

    • 43cbcc1f - Issue #3531838 by rduterte: Add a safety check if there's no configuration

    Compare with previous version

  • Rodel Duterte resolved all threads

    resolved all threads

    • Resolved by Rodel Duterte

      Thanks! I took a look through and left some comments. I also should mention that there's no hook_update_N() to update the config for existing installs, but I don't know if we're worried about that (there's no release afaict).

  • Rodel Duterte added 1 commit

    added 1 commit

    • dfe0aaec - Issue #3531838 by rduterte: Apply suggested improvements for condition plugin...

    Compare with previous version

  • Rodel Duterte resolved all threads

    resolved all threads

  • Thanks @rduterte, looks great to me! I picked up on some super minor points, and I haven't had a chance to actually run it myself.

  • Rodel Duterte added 1 commit

    added 1 commit

    Compare with previous version

  • Rodel Duterte resolved all threads

    resolved all threads

  • @rduterte Loverly stuff, thanks! I noticed just one additional thing I hadn't picked up on earlier, it's again unlikely to cause an issue in practice but perhaps better safe than sorry.

  • Rodel Duterte added 1 commit

    added 1 commit

    • ac10fab8 - Issue #3531838 by rduterte: Remove early out and move it to for safety check.

    Compare with previous version

  • Rodel Duterte resolved all threads

    resolved all threads

    • Resolved by Rodel Duterte

      Thanks @rduterte, looks great to me! Ran it locally:

      • :white_check_mark: You can't save an invalid path in the condition config.
      • :white_check_mark: The warning shows up on the path given.
      • :white_check_mark: Negate reverses the path condition as expected.

      Future tasks

      • Mention in the release notes that existing installs should reinstall the module or otherwise update their configuration to include conditions.
      • It might be nice to set up some automated tests to help prevent regressions in the condition handling.
  • Rodel Duterte resolved all threads

    resolved all threads

  • merged

  • Please register or sign in to reply
    Loading