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

Improved CP performance issue with relationships in grids #3966 #4031

Open
wants to merge 9 commits into
base: 7.dev
Choose a base branch
from

Conversation

Yulyaswan
Copy link
Collaborator

@Yulyaswan Yulyaswan commented Feb 6, 2024

Improved CP performance issue with relationships in grids
Resolved #3966
In this PR, we are loading JSON after clicking the button for the relationship React component if the 'Defer field initialization' option is used.
It works for single relationship field

@intoeetive could you please have a look for next items:

  1. an error for the Relationship inside the Grid (screenshot added).
Screenshot 2024-02-06 at 14 45 16
  1. Relationship inside the Fluid doesn't work
Screenshot 2024-02-06 at 14 46 56
  1. Relationship inside the Grid inside the Fluid doesn't work
Screenshot 2024-02-06 at 14 49 07

Yulyaswan and others added 5 commits February 5, 2024 15:11
… for relationships

NOTE
this is quick and dirty prototype
it's relying on URL segment to return the component - we need a better check
it's still including the component for all requests (just not sent to browser if deferred) - we need to only build component data if we need those
it does not support Grids yet
once we get proof of concept, we need to get those things fixed
# Conflicts:
#	system/ee/ExpressionEngine/Addons/relationship/ft.relationship.php
#	system/ee/ExpressionEngine/Addons/relationship/views/publish.php
@intoeetive
Copy link
Contributor

@Yulyaswan I made necessary updates to support Grid and Fluid fields.

What I noticed however is that if you have a Relationship in Grid (and also regular Relationship field) the click on "edit" in Grid (but not in Regular field) is processed twice, so the AJAX is performed twice. Could you please check why this would be happening

@Yulyaswan Yulyaswan added this to the 7.5.0 milestone Mar 13, 2024
@Yulyaswan Yulyaswan added the enhancement New feature or request label Mar 13, 2024
@Yulyaswan Yulyaswan marked this pull request as ready for review March 13, 2024 09:57
@bryannielsen bryannielsen modified the milestones: 7.5.0, 7.5.x Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CP performance issue with relationships in grids
3 participants