Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fixed comped subscription duration drop-down sometimes not being visible #15764

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

kevinansfield
Copy link
Contributor

closes https://github.com/TryGhost/Team/issues/2110

  • added failing test showing feature service @feature properties weren't autotracking correctly if accessed before authentication+settings fetch occurs
    • shows labs and feature properties on the feature service are not reacting to changes in the settings service
    • removing the @computed on the feature.labs getter stops it being cached but it then fails on the feature.testFlag computed property
  • updated settings service to behave as expected with our current version of Ember
    • inspected the store schema for Setting to define the "proxied" properties up-front rather than only after fetching
    • updated the property definition to use computed so we're opting in to the old style reactivity (required adding the @classic decorator to pass linting)

…sible

closes TryGhost/Product#2110

- added failing test showing feature service `@feature` properties weren't autotracking correctly if accessed before authentication+settings fetch occurs
  - shows labs and feature properties on the feature service are not reacting to changes in the settings service
  - removing the `@computed` on the `feature.labs` getter stops it being cached but it then fails on the `feature.testFlag` computed property
- updated `settings` service to behave as expected with our current version of Ember
  - inspected the store schema for `Setting` to define the "proxied" properties up-front rather than only after fetching
  - updated the property definition to use `computed` so we're opting in to the old style reactivity (required adding the `@classic` decorator to pass linting)
@kevinansfield kevinansfield merged commit d1a061e into TryGhost:main Nov 3, 2022
@kevinansfield kevinansfield deleted the fixed-settings-tracking branch November 3, 2022 10:08
kevinansfield added a commit that referenced this pull request Nov 4, 2022
…sible (#15764)

closes TryGhost/Product#2110

- added failing test showing feature service `@feature` properties
weren't autotracking correctly if accessed before
authentication+settings fetch occurs
- shows labs and feature properties on the feature service are not
reacting to changes in the settings service
- removing the `@computed` on the `feature.labs` getter stops it being
cached but it then fails on the `feature.testFlag` computed property
- updated `settings` service to behave as expected with our current
version of Ember
- inspected the store schema for `Setting` to define the "proxied"
properties up-front rather than only after fetching
- updated the property definition to use `computed` so we're opting in
to the old style reactivity (required adding the `@classic` decorator to
pass linting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant