Provide an interface for TempStore implementations

Created on 31 May 2013, about 12 years ago
Updated 30 January 2023, over 2 years ago

Currently, the TempStore implementation resides in the user module. I can see why the factory was placed there (it assumes that there is a global user as it tries to fall back to the global user id if no owner has been definide explicitly). However, in the long run, I think it makes sense to move it to Drupal\Core.

At some point we can probably even inject our refactored session into the factory and retrieve the user id from that, completely untying it from the user module.

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
User systemΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¦πŸ‡ΉAustria fubhy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot β†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

  • First commit to issue fork.
  • πŸ‡¬πŸ‡§United Kingdom AndyF

    Thanks everyone for the work on this.

    If we lay hands on this, i'd say let's add interfaces for the factories too.

    That's actually what I was looking for. Kinda minor, but on a site with Domain Access I'd like to make the Views UI domain-aware and was hoping to decorate the shared temp store factory, but I can't do that because there's no interface. (No great shakes, I can extend and override, but still...)

    I've moved #26 to an MR and added factory interfaces.

    • I didn't add type declarations to the new interfaces because of the existing implementations. I don't think these classes are covered by the BC policy, but I didn't want to make life hard for anyone extending them nonetheless;
    • I didn't update existing type declarations that reference the concrete temp store implementations, again for abundance-of-caution BC reasons.
  • Pipeline finished with Success
    14 days ago
    Total: 1777s
    #505622
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Issue summary needs to be updated please.

Production build 0.71.5 2024