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

Debug/permissions logs #14303

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft

Debug/permissions logs #14303

wants to merge 27 commits into from

Conversation

cammellos
Copy link
Member

What does the PR do

Affected areas

StatusQ checklist

  • add documentation if necessary (new component, new feature)
  • update sandbox app
    • in case of new component, add new component page
    • in case of new features, add variation to existing component page
    • nice to have: add it to the demo application as well
  • test changes in both light and dark theme?

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

Cool Spaceship Picture

jrainville and others added 24 commits March 20, 2024 19:02
…ed community flow

This commit:
- improves selection of addresses to reveal
- keeps the selection state for the popup lifetime
- brings higher granularity in terms of signed requests by keypairs
- meets new requirements from the latest related Figma
- merges edit shared addresses feature and request to join community features
into a single component, cause the flow is logically the same, with the only
difference that when editing revealed addresses we don't show the community
intro screen

Fixes at least points 3 and 4 from #13988
…d it any more

Since we merged editing revealed addresses into request to join community popup,
cause it logically belongs there, the relevant qml file is removed from story book.
- do not use the `alphanumericalExpanded:
/^$|^[a-zA-Z0-9\-_\.\u0020]+$/` regex which contains the dot (`.`)
character too; be explicit here and do what the error message says
- the space character at start/end is validated above with the
`startsWithSpaceValidator`

CHERRY-PICK-TO: 2.28

Fixes #14127
* fix(permissions): fix hang when all channel perm check return

Fixes #14234

The problem was that we updated **all** the models from **all** the channels of a community each time the channel requirement checks returned.

The fix is to first of all, make sure we don't call that check too often. It sometimes got called twice in a row by accident.

The other better fix is to check if anything actually changed before updating. This solves the issue almost entirely.  Since the permissions almost never change, the updates now take only a second.

* fix(permisisons): never run permission checks for privileged users

Also fixes #14234 but for admins, TMs and Owners.

Admins+ were still getting the hang, because the permission checks always returned something different than the models, because the models knew that admins have access to everything, but the permission check was running as if it were a normal user (I think, un-tested).

Anyway, the solution is more simple, we never need  to run the permission checks on admins+, because they always have access to everything!

* fix(Communities): prevent channels model from emitting unnecessary signals

Closes: #14274

* chore(Communities): improve channels metadata lookup performance

ChannelsSelectionModel is removed, replaced with plain LeftJoinModel.
Transformations of left-side model are done in a single place, not in
every delegate making the join.

* only call update functions when there is something to update + move permission model creation when needed

---------

Co-authored-by: Michał Cieślak <[email protected]>
- hide the "Current password" label when creating a new password
- fix margins inside the keycard popup
- some minor UI fixups according to Figma

Fixes: #14214
Fixes: #14177
@status-im-auto
Copy link
Member

status-im-auto commented Apr 5, 2024

Jenkins Builds

Click to see older builds (12)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 61fc2c2 #2 2024-04-05 11:35:17 ~5 min tests/nim 📄log
✔️ 61fc2c2 #2 2024-04-05 11:35:34 ~5 min macos/aarch64 🍎dmg
✔️ 61fc2c2 #2 2024-04-05 11:39:04 ~9 min macos/x86_64 🍎dmg
✔️ 61fc2c2 #2 2024-04-05 11:41:14 ~11 min tests/ui 📄log
✔️ 61fc2c2 #2 2024-04-05 11:46:15 ~16 min linux/x86_64 📦tgz
✔️ 61fc2c2 #2 2024-04-05 12:03:36 ~33 min windows/x86_64 💿exe
✔️ 3f26a56 #3 2024-04-05 14:53:15 ~6 min tests/nim 📄log
✔️ 3f26a56 #3 2024-04-05 14:54:24 ~7 min macos/x86_64 🍎dmg
✔️ 3f26a56 #3 2024-04-05 14:55:54 ~9 min macos/aarch64 🍎dmg
✔️ 3f26a56 #3 2024-04-05 14:58:29 ~11 min tests/ui 📄log
✔️ 3f26a56 #3 2024-04-05 15:01:00 ~14 min linux/x86_64 📦tgz
✔️ 3f26a56 #3 2024-04-05 15:17:31 ~30 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f2ffc9d #4 2024-04-05 16:39:24 ~5 min macos/aarch64 🍎dmg
✔️ f2ffc9d #4 2024-04-05 16:40:39 ~6 min tests/nim 📄log
✔️ f2ffc9d #4 2024-04-05 16:42:33 ~8 min macos/x86_64 🍎dmg
✔️ f2ffc9d #4 2024-04-05 16:45:34 ~11 min tests/ui 📄log
✔️ f2ffc9d #4 2024-04-05 16:50:15 ~16 min linux/x86_64 📦tgz
✔️ f2ffc9d #4 2024-04-05 17:06:43 ~32 min windows/x86_64 💿exe
✔️ 72662e7 #5 2024-04-05 19:03:29 ~4 min macos/aarch64 🍎dmg
✔️ 72662e7 #5 2024-04-05 19:05:48 ~6 min tests/nim 📄log
✔️ 72662e7 #5 2024-04-05 19:06:52 ~7 min macos/x86_64 🍎dmg
✔️ 72662e7 #5 2024-04-05 19:09:57 ~11 min tests/ui 📄log
✔️ 72662e7 #5 2024-04-05 19:16:01 ~17 min linux/x86_64 📦tgz
✔️ 72662e7 #5 2024-04-05 19:30:58 ~31 min windows/x86_64 💿exe

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.

None yet

9 participants