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

SchemaRecord Documentation Quest #9695

Open
1 of 40 tasks
runspired opened this issue Feb 23, 2025 · 1 comment
Open
1 of 40 tasks

SchemaRecord Documentation Quest #9695

runspired opened this issue Feb 23, 2025 · 1 comment

Comments

@runspired
Copy link
Contributor

runspired commented Feb 23, 2025

SchemaRecord Overview

  • @warp-drive/schema-record has a meaningful README with an overview and setup instructions
  • @warp-drive/schema-record has a meaningful overview for the APIDocs

New Guides Content

  • How to author a resource/object schema
  • kinds of FieldSchema and what they do
  • which FieldSchema kinds / features are not yet supported in standard mode
  • configuring SchemaRecord
  • configuring SchemaRecord AND Model
  • immutability/remoteState expectations of SchemaRecord
  • editing and saving an immutable SchemaRecord
  • editing and saving deep-object changes
  • using legacy mode for SchemaRecord (and its expectations)
  • linksMode with Model relationships
  • linksMode with SchemaRecord relationships
  • using Types with SchemaRecord
  • registering and using transformations
  • registering and using derivations
  • registering and using hash functions
  • registering and using default derivations for legacy mode
  • registering and using default derivations for standard mode
  • "rules" for registering schema information
  • withDefaults for legacy mode
  • withDefaults for standard mode
  • migrating between Model and SchemaRecord
  • advanced migration via Proxy + legacy mode
  • ??

New API Docs Content

  • @warp-drive/schema-record instantiateRecord
  • @warp-drive/schema-record teardownRecord
  • @warp-drive/schema-record withDefaults
  • @warp-drive/schema-record SchemaService
  • @warp-drive/schema-record registerDerivations
  • @warp-drive/schema-record fromIdentity
  • @warp-drive/schema-record instantiateRecord
  • @warp-drive/schema-record Checkout

Existing Guides Content Changes

  • use schemas, types and schema-record instead of Models in super-rentals tutorial
  • EmberData Section
    • Defining Models should become Defining Schemas
    • Creating, Updating and Deleting should no longer show legacy model method
      • remove save hasDirtyAttributes changedAttributes rollbackAttributes
      • remove deleteRecord isDeleted and destroyRecord
      • validation errors should be handled from the request, no more record.errors
    • Relationships
      • this whole section needs a major rework, not just to remove Models. Likely we should use the in-repo relationship guides as a starting point instead.

APIDocs Content Changes

  • use schemas, types and schema-record instead of Models in main examples
  • update main, store and request overviews to show SchemaRecord usage
  • mark Model as legacy (link to schema-record)
@github-project-automation github-project-automation bot moved this to needs triage in EmberData Feb 23, 2025
@runspired runspired marked this as a duplicate of #9696 Feb 23, 2025
@runspired runspired pinned this issue Feb 23, 2025
@runspired
Copy link
Contributor Author

Highest priority items for 5.4 from above in priority order

  • New API Docs overview for SchemaRecord
  • New API Docs content
  • field schema guide w/current "standard mode" limitations
  • linksMode guide
  • legacy mode guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: needs triage
Development

No branches or pull requests

1 participant