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

Start experiment with fields for Backrelations #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pbauer
Copy link
Member

@pbauer pbauer commented Apr 6, 2020

So far just a experiment...

The change sets RelationValues on the source and the target of a relating content if a field exists.
The are still issues with updating relations when they are changed/deleted in the source/target.
Also the architecure is not really great:

  • The fieldname has to be the same in source and target (maybe ok)
  • It creates two different relationValue objects instead of one.
  • It stores them on the objects and register them in intid and zc.relations
  • It would be nicer to have only one RelationValue but the then the BackRelatedItemsWidget would need to be more than a simple subsclass

…ist.

The change sets RelatinValue items on the source and the target of a relatiing item if a field exists.
The are still issues with updating relations when they are changed/deleted in the source/target.
Also the architecure is not really great:
* The fieldname has to be the same in source and target (maybe ok)
* It creates two different relationValue objects instead of one.
* It stores them on the objects and register them in intid and zc.relations
* It would be nicer to have only one RelationValue but the then the BackRelatedItemsWidget would need to be more than a simple subsclass
@mister-roboto
Copy link

@pbauer thanks for creating this Pull Request and help improve Plone!

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass.

Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:

@jenkins-plone-org please run jobs

With this simple comment all the jobs will be started automatically.

Happy hacking!

@jensens
Copy link
Member

jensens commented May 12, 2022

Is this still a thing or better close and forget?

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.

3 participants