1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-18 20:33:00 +01:00
bitwarden-estensione-browser/libs
Addison Beck b3135403e8
Wire up key definitions for OrganizationService (#7781)
* Wire up key definitions for OrganizationService

[`AC-2009`: Transition OrganizationService to use StateProvider](
https://bitwarden.atlassian.net/browse/AC-2009)

In order to support the new `StateProvider` APIs for managing
application state this commit modifies `OrganizationService` in the following
ways:

1. Adding a `KeyDefinition` object to `OrganizationService` to store the
   `organization` record in `StateProvider`.
1. Injecting `StateProvider` and wiring up `OrganizationService` to read
   from the `organizations` key definition for the active user account.
1. Expanding the capabilities of `OrganizationData` to be able to read
   itself from a JSON string. Previously this was handled directly by
   `StateService`.
1. Updating tests to include requirements for testing against
   `StateProvider`.
1. Marking the existing `StateService`-backed `organizations`
   `Observable` and `BehaviorSubject` as deprecated.

This is largely unimplemented code with no intended visible effects to
the system. Implementing getting & updating the `organizations` value
from `StateProvider` will the next step in this work.

* Rework null check on OrganizationData

* Remove deprecation signals for the time being

* Move key definition inline with its service

* Create date objects when deserialzing json from state
2024-02-06 18:48:34 -06:00
..
.vscode
admin-console create team owned libs for billing, admin-console, platform (#7233) 2023-12-15 09:02:21 -05:00
angular [PM-5275] Migrate state in Fido2ClientService to State Providers (#7745) 2024-02-06 15:15:22 -05:00
auth [PM-5255] Create login strategy service (#7750) 2024-02-05 14:26:41 -05:00
billing create team owned libs for billing, admin-console, platform (#7233) 2023-12-15 09:02:21 -05:00
common Wire up key definitions for OrganizationService (#7781) 2024-02-06 18:48:34 -06:00
components Add eslint rule no-floating-promises (#7789) 2024-02-02 15:13:37 -05:00
exporter [AC-1492] Split export service (#7462) 2024-01-29 09:38:16 +00:00
importer Add eslint rule no-floating-promises (#7789) 2024-02-02 15:13:37 -05:00
node [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
platform create team owned libs for billing, admin-console, platform (#7233) 2023-12-15 09:02:21 -05:00
shared [PM-5781] Anon addy forwarder (#7654) 2024-01-24 17:23:39 -05:00
tools
vault [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00