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

feat: offline backends - users metadata (AR-3124) #1758

Conversation

yamilmedina
Copy link
Contributor

@yamilmedina yamilmedina commented May 5, 2023

TaskAR-3124 [Android] Implement UX for missing conversation and user metadata


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

We need to support displaying/ hiding and restrict options for users that we don't have metadata for.
This is done in, other user profile, participants lists and conversations list.

Solution

If a backend is down, and we only have ids of these remote users we present a better user experience.

Dependencies (Optional)

wireapp/kalium#1698

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

Attachments (Optional)


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@yamilmedina yamilmedina changed the title feat: offline backends - users metadata (AR-3123) feat: offline backends - users metadata (AR-3124) May 5, 2023
@AndroidBob
Copy link
Collaborator

Build 1 failed.

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

Unit Test Results

  64 files  ±0    64 suites  ±0   41s ⏱️ -3s
449 tests ±0  448 ✔️ ±0  1 💤 ±0  0 ±0 

Results for commit 6298d7f. ± Comparison against base commit 4da0d29.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

Build (dev-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

Build (beta-debug) available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 2 succeeded.

The build produced the following APK's:

Copy link
Contributor

@alexandreferris alexandreferris left a comment

Choose a reason for hiding this comment

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

Great work! Just have a tiny comment

@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Merging #1758 (6298d7f) into feat/epic-federation-offline-messages (4da0d29) will decrease coverage by 0.01%.
The diff coverage is 33.33%.

@@                             Coverage Diff                             @@
##             feat/epic-federation-offline-messages    #1758      +/-   ##
===========================================================================
- Coverage                                    36.97%   36.97%   -0.01%     
  Complexity                                     765      765              
===========================================================================
  Files                                          259      259              
  Lines                                         9768     9770       +2     
  Branches                                      1285     1285              
===========================================================================
  Hits                                          3612     3612              
- Misses                                        5805     5807       +2     
  Partials                                       351      351              
Impacted Files Coverage Δ
...roid/ui/userprofile/other/OtherUserProfileState.kt 86.84% <0.00%> (-2.35%) ⬇️
...e/android/ui/home/newconversation/model/Contact.kt 90.00% <50.00%> (-10.00%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4da0d29...6298d7f. Read the comment docs.

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2023

Build (dev-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2023

Build (beta-debug) available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 3 succeeded.

The build produced the following APK's:

@CLAassistant
Copy link

CLAassistant commented May 10, 2023

CLA assistant check
All committers have signed the CLA.

@yamilmedina yamilmedina merged commit ba55270 into feat/epic-federation-offline-messages May 10, 2023
@yamilmedina yamilmedina deleted the feat/epic-federation-usersmetadata branch May 10, 2023 09:51
@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 4 succeeded.

The build produced the following APK's:

github-merge-queue bot pushed a commit that referenced this pull request Jun 26, 2023
* feat: implementation of component for displaying partial success

* feat: implementation of component for displaying partial success

* feat: implementation of component for displaying partial success

* feat: mapping failures

* feat: extract resources

* feat: kalium ref

* feat: partial delivery failures ui

* feat: kalium ref

* feat: cleanup

* feat: add todo and feature flag

* feat: add todo and feature flag

* feat: kalium ref

* feat: kalium ref

* feat: detekt

* feat: tests

* Revert "feat: federation, offline backends message sending (AR-3122) (#1501)"

This reverts commit 92be253.

* chore: kalium ref

* Revert "Revert "feat: federation, offline backends message sending (AR-3122) (#1501)""

This reverts commit e5d2050.

* chore: remove flags

* chore(migration): out of conflict kalium ref

* chore: fix tests

* fix: refactor assig and naming

* fix: remove unused code

* chore: kalium ref

* feat: handle asset failure

* feat: handle asset partial delivery

* feat: offline backends - handling list-prekeys failed to list messages (AR-3122) (#1745)

* feat: handling edge cases messages ui on failure

* feat: comments for next

* fix: handle case when 1 user with failures

* feat: wip handlingmessages

* feat: wip handlingmessages

* feat: wip handlingmessages

* feat: fixing messages

* feat: small refactor stable list

* feat: kalium ref

* feat: pr comments

* feat: kalium ref

* feat: offline backends - users metadata (AR-3124) (#1758)

* feat: strings and kalium ref

* feat: adjustment for not available users, other user profile screen

* feat: adjustment for not available users, other user profile screen

* feat: adjustment for not available users, other user profile screen

* feat: adjustment for not available users, other user profile screen

* feat: adjustment for not available users, other user profile screen

* feat: adjustment query to consider deleted users logic as it is now

* feat: adjustment styles for unknown

* feat: adjustment styles for unknown

* feat: kalium ref

* feat(offline-backends): users and conversations without metadata refetch (AR-3123)  (#1789)

* feat: strings and kalium ref

* feat: adjustment for not available users, other user profile screen

* feat: adjustment for not available users, other user profile screen

* feat: adjustment for not available users, other user profile screen

* feat: adjustment for not available users, other user profile screen

* feat: adjustment for not available users, other user profile screen

* feat: adjustment query to consider deleted users logic as it is now

* feat: adjustment styles for unknown

* feat: adjustment styles for unknown

* feat: persistence for getting users out of sync

* feat: invok operator

* feat: kalium ref

* feat: fix f** merge error automatically bad rebased

* feat: refresh users in search action

* feat: kalium ref

* feat: detekt

* feat: fix tests

* feat: fix tests

* chore: update kalium ref with updates

* chore: update kalium ref

* chore: kalium ref with sync mechanism wired

* chore: logging ref

* fix: db ops, user persistence fixed

* chore: kalium ref with sync mechanism wired

* feat: refactor, comments

* chore: wip for merge

* fix: adjust text copy and minor visual fixes

* fix: adjust text copy and minor visual fixes

* fix: texts and cases

* fix: texts and cases

* fix: clickable extracted and new kalium ref

* fix: clickable extracted and new kalium ref

* feat: detekt

* feat: conversation creation with offline backends (WPB-263) (#1842)

* chore: kalium ref

* feat: mapping new type for  failed to add

* feat: kalium ref

* feat: adding base for message details failed to add

* feat: renaming composable

* feat: ui for failed to add

* feat: detekt

* feat: stringds

* chore: kalium ref

* fix: conversation failed to add error grouped by domain annotated string (WPB-263) (#1848)

* chore: refator group by domain

* chore: wip refactor to group by domain

* chore: wip refactor to group by domain

* chore: refactor messaging failed to add by domain

* chore: refactor messaging failed to add by domain

* chore: refactor messaging failed to add by domain

* chore: refactor messaging failed to add by domain

* chore: preparing merge

* fix: kalium ref

* fix: kalium ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants