Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

add export support in teamschats collections processor #5125

Closed
wants to merge 19 commits into from

Conversation

ryanfkeepers
Copy link
Contributor

more boilerplate adaptation


Does this PR need a docs update or release note?

  • β›” No

Type of change

  • 🌻 Feature

Issue(s)

Test Plan

  • πŸ’ͺ Manual
  • ⚑ Unit test
  • πŸ’š E2E

introduces the Chats service and Chats category
standard boilerplate additions, largely copy-paste and renamed from other files.
standard graph api boilerplate.
seems like a lot of code, but this is 95% boilerplate additions copied
from other similar collections packages.  Some noteworthy differences:
* teamsChats does not handle metadata, so all metadata, delta, and previous
path handling was removed
* teamsChats does not produce tombstones
* chats are never deleted, so no "removed" items are tracked
* all chats gets stored at the prefix root, so no "containers" are iterated, and therefore only one collection is ever produced.

This means that, overall, the boilerplate here is much reduced compared to
boilerplate in similar packages.
tests will arrive in a later PR
All code is copied and amended from existing cli boilerplate.
Some necessary changes to get a green backup creation from the cli.
once we're past kopia assits, the chat can
download all of its messages and store them in the body
uploded to kopia.
details wasn't properly listing backed up items.  This fixes
the details display, and contains some code clean-up that occurred
along the way.
lazily fetch the chat members and add them to the chat
during backup item downloads.
@ryanfkeepers ryanfkeepers added export All operations that deal with data export chats 1:1 chats within teams labels Jan 25, 2024
@ryanfkeepers ryanfkeepers self-assigned this Jan 25, 2024
Copy link
Contributor

aviator-app bot commented Jan 25, 2024

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was closed without merging. If you still want to merge this PR, re-open it.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

Comment on lines +194 to +197
var isDeleted bool

deletedAt, ok := ptr.ValOK(item.GetDeletedDateTime())
isDeleted = ok && deletedAt.After(time.Time{})
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
var isDeleted bool
deletedAt, ok := ptr.ValOK(item.GetDeletedDateTime())
isDeleted = ok && deletedAt.After(time.Time{})
deletedAt, ok := ptr.ValOK(item.GetDeletedDateTime())
isDeleted := ok && deletedAt.After(time.Time{})

@ryanfkeepers ryanfkeepers force-pushed the 5036-chats-backup-v0-3 branch from 3912a64 to 480e3a8 Compare January 30, 2024 20:18
Base automatically changed from 5036-chats-backup-v0-3 to 5063-chats-backup-v0-2 February 15, 2024 21:25
Base automatically changed from 5063-chats-backup-v0-2 to 5063-chats-backup-v0-1 February 15, 2024 21:32
Copy link

Quality Gate Passed Quality Gate passed

Issues
5 New issues

Measures
0 Security Hotspots
No data about Coverage
1.6% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
chats 1:1 chats within teams export All operations that deal with data export
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants