Skip to content

Release v0.2.15 - #44

Open
roncodes wants to merge 3 commits into
mainfrom
dev-v0.2.15
Open

Release v0.2.15#44
roncodes wants to merge 3 commits into
mainfrom
dev-v0.2.15

Conversation

@roncodes

Copy link
Copy Markdown
Member

Release branch for v0.2.15. Merging this PR tags and publishes the release (release.yml reads the version from the branch name and validates package.json + RELEASE.md agree).

Contents

Checklist

Related: fleetbase/core-api#246 — needed alongside this release for the immediately option to revoke at the exact boundary instant.

The api-keys console assigns the expiration dropdown's relative strings
('never', 'immediately', 'in 1 hour', ...) directly to expires_at, but the
attribute was declared @attr('date') and Ember Data's date transform
serializes any non-Date value to null — so every option reached the API as
expires_at: null and no expiry was ever persisted. The roll path was
unaffected because it reads the raw attribute and PATCHes it outside the
serializer.

Add an `expiration` transform that passes strings through for the server
to resolve (core-api's ApiCredential::setExpiresAtAttribute owns the
relative-time parsing), serializes real Dates to ISO strings, and
deserializes datetimes like the date transform so the display path
(expiresAt computed, list column) keeps receiving Date instances.

Also make the engine's own test suite runnable, since nothing covered this
path (or ran at all):
- eager-load the engine for its own `ember test` runs (fleetops pattern)
  so the dummy app can resolve engine modules
- add @ember/legacy-built-in-components so ember-engines' LinkToExternal
  has an extensible base class under ember-source 5.4
- add prismjs and skip the ember-prism component config for self-test
  builds, where ember-cli-node-assets registers imports without funneling
  the files and the vendor concat fails
- regression tests: relative strings survive model.serialize(), Dates
  serialize to ISO, datetimes deserialize to Dates for display
…ation

fix: API key expiration dropdown never persists — date transform nulls relative expiration strings
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.

1 participant