Skip to content

Update related contacts on manager deletion#3077

Open
bkrith wants to merge 1 commit intonextcloud:mainfrom
bkrith:feature/fixChartManagerDeletion
Open

Update related contacts on manager deletion#3077
bkrith wants to merge 1 commit intonextcloud:mainfrom
bkrith:feature/fixChartManagerDeletion

Conversation

@bkrith
Copy link
Copy Markdown
Contributor

@bkrith bkrith commented Oct 23, 2022

Fixes: #3058

Before deletion remove property managersName reference for each related contact.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 8, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!


<!-- main contacts details -->
<ContactDetails :contact-key="selectedContact" :contacts="sortedContacts" />
<ContactDetails :contact-key="selectedContact" :sorted-contacts="sortedContacts" :contacts="contacts" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this change really necessary for the fix?

@ChristophWurst
Copy link
Copy Markdown
Member

@bkrith please do the following two things

  1. Move sort changes out into a separate PR. We can release this fix with the next minor/major. The fix in this PR will be backported.
  2. Add logic to catch externally deleted manager. This app is just one of the possible applications that access Nextcloud's CardDAV APIs. If someone deletes a manager on their phone, Thunderbird, etc, then we also don't want to cause an error. I would suggest to just ignore references to other contacts that no longer exist. We don't necessarily have to update all cards.

@ChristophWurst ChristophWurst added bug Something isn't working 2. developing Work in progress and removed 3. to review Waiting for reviews labels Dec 16, 2022
@ChristophWurst
Copy link
Copy Markdown
Member

@bkrith friendly 🏓 . Please have a look at the review feedback above when you have time :)

@Jerome-Herbinet
Copy link
Copy Markdown
Member

Hi @bkrith ! As @ChristophWurst said, can you take a look at the review feedback above ? Thanks !

@Adaniieel15
Copy link
Copy Markdown

Hello, I hope you are well.

In our Nextcloud instance we removed the main administrator and the org chart stopped showing.

I was wondering if they will be looking for a solution for this soon? Or if there are some steps I can take to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Organization chart : When a manager's contact file is deleted, it crashes the organization chart display

5 participants