Web based family history software

Question Autointegration family trees in one with access for the users from tress

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #1 by webtreesFUN
What You think guys about this type solution?
Code:
<?php // File: TreeIntegration.php class TreeIntegrationPlugin extends Plugin {     function __construct() {         parent::__construct();         $this->addEvent('gedcom_uploaded', 'gedcomUploaded');         $this->addEvent('after_gedcom_update', 'afterGedcomUpdate');         $this->addRoute('get', 'TreeIntegration::getIntegratedTrees');     }     function gedcomUploaded($data) {         // Function called after GEDCOM file upload         // Implement tree integration logic here         $gedcomFilePath = $data['gedcom_path'];         // Example logic: Integrate the uploaded tree into the main tree         // Here you would implement your specific integration logic         // For example, copying individuals, families, etc. from the uploaded tree to the main tree.         // This is a simplified example.         $mainTree = GEDCOM\Tree::find(1); // Assuming main tree ID is 1         $uploadedTree = GEDCOM\Tree::import($gedcomFilePath);         $mainTree->merge($uploadedTree);         // Save changes         $mainTree->save();     }     function afterGedcomUpdate($data) {         // Function called after GEDCOM file update         // Implement update logic after changes here         $gedcomFilePath = $data['gedcom_path'];         // Example logic: Update integrated tree after changes         // Here you would implement your specific update logic         // For example, if any changes occurred in the uploaded tree, apply those changes to the integrated tree.         // This is a simplified example.         $integratedTree = GEDCOM\Tree::find(2); // Assuming integrated tree ID is 2         $updatedTree = GEDCOM\Tree::import($gedcomFilePath);         $integratedTree->merge($updatedTree);         // Save changes         $integratedTree->save();     }     function getIntegratedTrees() {         // Function to provide access to integrated trees for other users         // Implement access to integrated trees logic here         // This is a simplified example.         $integratedTree = GEDCOM\Tree::find(2); // Assuming integrated tree ID is 2         $treeData = $integratedTree->getIndividuals(); // Get individuals from integrated tree         return $treeData;     } } ?>

Please Log in or Create an account to join the conversation.

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #2 by webtreesFUN
More advanced option and vision is to "merge" trees of family in this way:
- option that a given family tree could be combined with a selected object of another tree as an integrating one in the "merge" process, where the process of where to join the tree would be decided by the user proposing the "merge" process
Code:
<?php // File: TreeIntegration.php class TreeIntegrationPlugin extends Plugin {     function __construct() {         parent::__construct();         $this->addEvent('gedcom_uploaded', 'gedcomUploaded');         $this->addEvent('after_gedcom_update', 'afterGedcomUpdate');         $this->addRoute('get', 'TreeIntegration::getIntegratedTrees');     }     function gedcomUploaded($data) {         // Function called after GEDCOM file upload         // Implement tree integration logic here         $gedcomFilePath = $data['gedcom_path'];         // Example logic: Integrate the uploaded tree into the main tree         // Here you would implement your specific integration logic         // For example, copying individuals, families, etc. from the uploaded tree to the main tree.         // This is a simplified example.         $mainTree = GEDCOM\Tree::find(1); // Assuming main tree ID is 1         $uploadedTree = GEDCOM\Tree::import($gedcomFilePath);         $mainTree->merge($uploadedTree);         // Save changes         $mainTree->save();     }     function afterGedcomUpdate($data) {         // Function called after GEDCOM file update         // Implement update logic after changes here         $gedcomFilePath = $data['gedcom_path'];         // Example logic: Update integrated tree after changes         // Here you would implement your specific update logic         // For example, if any changes occurred in the uploaded tree, apply those changes to the integrated tree.         // This is a simplified example.         $integratedTree = GEDCOM\Tree::find(2); // Assuming integrated tree ID is 2         $updatedTree = GEDCOM\Tree::import($gedcomFilePath);         $integratedTree->merge($updatedTree);         // Save changes         $integratedTree->save();     }     function getIntegratedTrees() {         // Function to provide access to integrated trees for other users         // Implement access to integrated trees logic here         // This is a simplified example.         $integratedTree = GEDCOM\Tree::find(2); // Assuming integrated tree ID is 2         $treeData = $integratedTree->getIndividuals(); // Get individuals from integrated tree         return $treeData;     } } ?>

Please Log in or Create an account to join the conversation.

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago - 10 months 1 week ago #3 by webtreesFUN
1. I think that with manual merge, where in combolist selecting persons, etc. should bee visible person ID as gedcom.

Now I see how problematic is this all around many families to do joins.


2. When system "Find unrelated individuals" as repeated.. then nothing to do with this.. it's problem, coz no real merge/integration, just like "free electron" in group family.
- Also this is due duplicated person after merge but:
"Find duplicates — Family GlobalRepositoriesNo duplicates have been found."..it's dissonance, coz exist duplicates but other ID.. hmm

3. After find this.. delteting user and " has been deleted. " belt and 2nd as "This individual does not exist or you do not have permission to view it."- but after delete the system should move user to main view of trees (we need here a "X" button then maybe redirection, now no any button).

4. Deleting doing many "Pending changes"  - should exist counter as "Pending changes (10)" 

Accepting all "Pending changesThere are no pending changes.
- redirecting to last individual but if delted then "This individual does not exist or you do not have permission to view it.".. so if not exist then redirect to main page with tree

5. If exist duplicated object then on diagram should be visible and rounded a "red board" for indication to operate to merge/integrate, change something.

6. After merge I can't recognize with individuals exist or not when "Find unrelated individuals" are listed many times. I'm afraid that I can easy delete individual that is required but need be connected in other branche of X, eg. as wife, husband. Soo.. need to see similar (Some list) and select what is to delete or connect in other branche (coz some persons as individual X can have similar name surname). OMG.. soo problematic.

7. When trying Data fix, then can use some functions many times without effect if system not counting real items to fix. This must be changed with some counter for all type problems, or dedicated functions as separated if need without option to recognize problem to fix.

8. If some problems around merge data and errors in php then long logs, these long logs as website logs doing situation that table logs is not wrapped and other columns are not visible for user, control panel is wide outside of main width without horizontal scroll.

9. Exist some case where husband don't have option to add brother or sister, but wife have this option. Both not have other brother or sister. I meet this situation with this limit many times.

10. Table `wt_individuals` not have spaces for new row, then we have:
1 NAME Name /Surname/2 TYPE  not
1 NAME Name /Surname/ 2 TYPE 
This same with media

This confirming needs about cols separated and update integrated after changes, and wt_media, wt_media_file and other need "crate_date"
www.webtrees.net/index.php/forum/9-reque...t-tree-to-new#103728

11. The _WT_USER must have own col as who edited as user_id in other way no option to find easy who broken base, and how find the user who have bad habit around system.
1 FILE DSC01111.JPG2 FORM JPG 3 TYPE PHOTO not
1 FILE DSC01111.JPG 2 FORM JPG 3 TYPE PHOTO
- then when operating on this data php have some problem, especially if data is similar (hard to guess why.. due searching and select?)
Last edit: 10 months 1 week ago by webtreesFUN.

Please Log in or Create an account to join the conversation.

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #4 by webtreesFUN
@Adminsitrator I think that exist trouble with merge between 2 trees if 1st have media in path media/ and other media/something, eg.

media/
- and second tree
media/tree2/
- 3th tree
media/tree3/

Then after merge 2nd, 3th tree not have access to media/ due that these trees have own container (what is sense to separate and easy to find group multimedia and review, etc.).

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 months 1 week ago #5 by bertkoor
Sorry, what problem exactly is solved? Very vague description..

stamboom.BertKoor.nl runs on webtrees v2.1.20

Please Log in or Create an account to join the conversation.

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago - 10 months 1 week ago #6 by webtreesFUN
Regarding media? I think with this that after merge data must be
1 copied from media/ to media/tree2/ or
2 indicate in data base related media in media/ (what is not soo pretty for future)
Last edit: 10 months 1 week ago by webtreesFUN.

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 months 1 week ago #7 by bertkoor

Regarding media?
No, regarding the top post: what do you think about this solution?

It is hard to judge a solution if the problem is unknown.

There is an English proverb: "jumping to conclusions".
What I see you doing (repeatedly) is jumping to solutions.

If you don't take us along your whole thought process from problem, via analysis to possible solution, you won't get any support.

stamboom.BertKoor.nl runs on webtrees v2.1.20

Please Log in or Create an account to join the conversation.

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #8 by webtreesFUN
The answer is in topis "Autointegration family trees in one with access for the users from tress"

But looks it's hard in whole system conception to auto-update parts of tree in one big.
It's start due my vision how to divide role and work due divide teams by families, now merge 1 is pain, more often merge more pain : )

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 months 1 week ago - 10 months 1 week ago #9 by bertkoor
Then my answer is: avoid multiple trees. Stick with one tree.
Unless you have very good reasons for having multiple trees...


Patient: it hurts if I do this.
Doctor: then don't do that!

Occasionally that is very good advice.

stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 10 months 1 week ago by bertkoor.

Please Log in or Create an account to join the conversation.

  • webtreesFUN
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #10 by webtreesFUN
Before this issues I did not know how this can be looks : )
Now trying do merge manual and move users to one merged and do this same with other tree maybe, but also pain..
Bad case in start.. they developed trees now what to do to show all.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum