Skip to content

Fix/version resource naming#220

Open
M-Gonzalo wants to merge 9 commits intoash-project:mainfrom
M-Gonzalo:fix/version-resource-naming
Open

Fix/version resource naming#220
M-Gonzalo wants to merge 9 commits intoash-project:mainfrom
M-Gonzalo:fix/version-resource-naming

Conversation

@M-Gonzalo
Copy link

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

…h-project#215)

- Treat %Ash.ForbiddenField{} values as nil when dumping values for full_diff
- Cover scalar and array cases in FullDiff.Helpers.dump_value/2
- Add regression tests in AshPaperTrail.FullDiffTest
- Document ForbiddenField->nil behavior for :full_diff in the Resource DSL docs
- Note the fix under Unreleased in the changelog
@M-Gonzalo
Copy link
Author

Implemented suggestions about version_of and ensure_loaded

true ->
regex_fallback(resource)
if safe_resource_version?(resource) do
if function_exported?(resource, :version_of, 0) do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, you don't need it due to safe_version_of

Copy link
Contributor

@zachdaniel zachdaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will merge once we remove that remaining function_exported 🥳

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.

2 participants