-
-
Notifications
You must be signed in to change notification settings - Fork 824
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 FormBuilder forms to Civiimport #25072
Conversation
(Standard links)
|
0fa8a18
to
eb1c387
Compare
} | ||
catch (UnauthorizedException $e) { | ||
// No access - return the empty array. | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton unless I'm missing something, all this can be simplified. You don't need the per-user caching & you don't need the permission check when fetching SearchDisplays and you don't need the try/catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colemanw yeah - you do want all that - the user will only retrieve their own jobs by the acls - so it is per user. And if they don't have permission to the api at all then we want to catch the error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so is there some hidden mechanism checking permissions inside the SearchDisplay::get()
that only returns certain searches per-user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - cos it applies ACLs & the ACLS on the UserJob filter
18ffa1e
to
52e6089
Compare
@colemanw I've addressed your feedback (and confirmed the docs step-by-step guide on how to embed a form is inadequate.... https://docs.civicrm.org/dev/en/latest/afform/overview/#embedding ) |
Co-authored-by: colemanw <coleman@civicrm.org>
52e6089
to
da9cd24
Compare
@eileenmcnaughton I've expanded the docs to be slightly more adequate. The code snippets are untested so will need to be adjusted as we go along. |
@colemanw - I'll see if I can make sense of it - this will be less painful to work on if we put 'My imports' in navigation - do you think under 'Reports' - it's the best I can think of |
Ok @eileenmcnaughton I'm fine with you merging this whenever you're ready |
@colemanw yeah - I'm ready on this one - the other is slated as a follow up (embedding) |
Upgraded to Merge-on-pass based on above comment & because I don't intend to add more to this PR |
Overview
Add FormBuilder forms to Civiimport
Before
Without FormBuilder wrappers we can't embed the forms
After
Now we can...
Technical Details
Comments
@colemanw - these are created if Civiimport is enabled when importing