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

Add support for ::pc/transform in id-resolver #10

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

tylernisonoff
Copy link
Contributor

Motivation: Opens up new possibilities for custom auth plugins into RAD.

defresolver's ::pc/transform has been used to build an auth framework by other fulcro users. However, RAD's attributes bypass defresolver and instead builds the resolver map manually.

This PR adds the ability to specify a ::pc/transform in an attribute.

If we want to merge this PR I would also like to:

  1. Add an attributes-options/pc-transform to RAD to clean this up.
  2. Add similar functionality to RAD's attribute-resolver

The deps.edn change just bumps dev-local to a more recent version (needed for testing, but I can move to another PR if preferred).

@awkay
Copy link
Member

awkay commented Dec 29, 2020

Sure, seems fine. With Pathom 3 around the corner we're probably also in for some kind of alterations to deal with that. Not sure what to do there, since it is a different thing altogether...but it's also like 10x faster or something, so it seems the proper way to go once released and stable.

I see you pushed another commit. Is this tested and ready?

@tylernisonoff
Copy link
Contributor Author

With Pathom 3 around the corner we're probably also in for some kind of alterations to deal with that.

Can definitely help with that when Pathom 3 is released.

I see you pushed another commit. Is this tested and ready?

I force-pushed an amended commit to clean up some whitespace :) Confirmed tests are still passing - so good to go!

@awkay awkay merged commit e6154d4 into fulcrologic:develop Dec 29, 2020
@awkay
Copy link
Member

awkay commented Dec 29, 2020

1.0.5 released

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