-
Notifications
You must be signed in to change notification settings - Fork 70
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
Spike: Remove inline entity form (IEF) from Vet Centers #17374
Comments
From mid-sprint:
|
Before getting too deep into a different issue I wanted to add my thoughts here: Option 1 - ViewfieldOne option is to use a Viewfield on the Vet Center content type in a similar fashion as the top task page content types (i.e. Billing & Insurance) include non-clinical services on their pages. Benefits:
Considerations:
Option 2 - Entity Browser - TableBenefits:
Considerations:
Option 3 - Recreate bottom of VAMC Facility Node View
I don't think that either of these options should require having to change the Vet Center dashboard since it just links to the Vet Center edit form with an anchor to the section that shows the Services. (@davidmpickett says Depending on implementation, we may need to change the anchor link, but that's relatively easy) The 'Entity Browser - Table' option does seem like it would be a little bit of a higher lift by needing more custom code so I'd maybe lean toward the Viewfield. @omahane & @davidmpickett Do either of you have any thoughts or suggestions about either of these options (or a completely different approach)? |
The code that shows what is required vs optional is in |
Let's take a min to discuss this in sprint planning since tomorrow is Michael's last day and Christian's been thinking about it to take this over / make final recommendation / get us to tickets created to satisfy ACs. |
@Becapa Thanks for digging into the possibilities here. I just edited your comment above to reformat it to make it a little easier to parse the points of comparison |
Just added option 3 for the sake of completeness. I don't every really know what's going on there, but it is filling a similar purpose (but in a weird way). Block layout with visibility settings(Note: the above (link to demo) is from the node:view, but is not available via node:edit). When a VAMC facility health service is created, the facility itself is updated by Corresponding references (link to demo), specifically (edited by @omahane ) |
Option 1 (Viewfield)This works for node:view well, but the while we have it currently working on node:edit for the top pages (thanks to a patch Jay Darnell wrote), it will definitely take more investigation to figure out the node edit. Option 2 (Entity browser - Table)Current examples don't seem to need the same kind of filtering we'd need to bring in the right ones initially. We'd need to use an entity reference view filtered to this facility. Some risk there. Option 3 (Adding a view via form_alter)This is the easiest way, using a view with arguments to pull in the correct items. The View can even show the current moderation state. The Edit link can open in a new tab. Questions:
|
Notes from UX Sync
|
Here's the first ticket about "winnowing": |
Here's the one about making "required" items actually required: #17676 |
@mmiddaugh @davidmpickett I know we're looking to make a design ticket, but this is what I have so far if I added the services through a view (you'll see it after the IEF on node:edit): I'd figure out how to change the table captions, but right now the links of the service go to the view of the facility service and edit links go to edit the service and are set to take the editor back to the facility edit screen on save. |
Stubbed UX ticket: #17680 |
FE Stubbbb #17681 |
@jilladams I think this is good to close now that stubs have been created, but I'll let you make the call |
4 tickets added to epic, queued for refinements. Closing! Go team. |
@omahane FYI - I tested your POC to see how it handled Optional Services and right now they are coming in as a second table. Not something that needs to be fixed now (since this was already going above and beyond), but wanted to show you / leave a note for our future selves |
Problem statements
When an editor edits a Vet Center Service, they have to do so using the Inline Entity Form on the Vet Center node. This does not update the last saved by an editor field on the Vet Center Service node
When an editor edits a Vet Center Service, they have to do so using the Inline Entity Form on the Vet Center node. This does not provide a revision log message field so no new revision log message is saved. This makes it so that revision gets the same log message as the previous log message.
To Reproduce
Steps to reproduce the behavior:
Proposed solution
Get rid of inline entity forms for services so that editors edit the node directly.
ACs
The text was updated successfully, but these errors were encountered: