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(@desktop/communities): automatically encrypt closed communities #10556

Merged
merged 1 commit into from
May 5, 2023

Conversation

mprakhov
Copy link
Contributor

@mprakhov mprakhov commented May 4, 2023

What does the PR do

Create/edit encrypted community option removed
The community will be encrypted automatically if the community will be closed and decrypted if it became open
Fixed bug, when edition community description changed encryption

Closes: #9942

Status-go PR: status-im/status-go#3455

Affected areas

Community encryption

Status-go PR status-im/status-go#3455

@mprakhov mprakhov requested review from a team, iurimatias, Cuteivist, MishkaRogachev and jrainville and removed request for a team May 4, 2023 14:57
@status-im-auto
Copy link
Member

status-im-auto commented May 4, 2023

Jenkins Builds

Click to see older builds (14)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 4315dd7 #1 2023-05-04 15:02:47 ~5 min tests/imports 📄log
✔️ 4315dd7 #1 2023-05-04 15:04:17 ~6 min tests/nim 📄log
✔️ 4315dd7 #1 2023-05-04 15:06:41 ~9 min macos/aarch64 🍎dmg
✔️ 4315dd7 #1 2023-05-04 15:10:21 ~12 min macos/x86_64 🍎dmg
4315dd7 #1 2023-05-04 15:10:28 ~13 min windows/x86_64 📄log
✔️ 4315dd7 #1 2023-05-04 15:13:10 ~15 min linux/x86_64 📦tgz
✖️ 4315dd7 #1 2023-05-04 15:18:27 ~21 min tests/e2e 📄log
✔️ cf52db0 #2 2023-05-05 10:39:12 ~5 min tests/imports 📄log
✔️ cf52db0 #2 2023-05-05 10:41:41 ~7 min tests/nim 📄log
✔️ cf52db0 #2 2023-05-05 10:43:34 ~9 min macos/x86_64 🍎dmg
✔️ cf52db0 #2 2023-05-05 10:44:13 ~10 min macos/aarch64 🍎dmg
✔️ cf52db0 #2 2023-05-05 10:48:30 ~14 min linux/x86_64 📦tgz
✔️ cf52db0 #2 2023-05-05 10:58:26 ~24 min tests/e2e 📄log
✔️ cf52db0 #2 2023-05-05 11:05:34 ~31 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 4631941 #3 2023-05-05 12:09:08 ~5 min tests/imports 📄log
✔️ 4631941 #3 2023-05-05 12:09:27 ~6 min macos/aarch64 🍎dmg
✔️ 4631941 #3 2023-05-05 12:10:37 ~7 min tests/nim 📄log
✔️ 4631941 #3 2023-05-05 12:12:11 ~8 min macos/x86_64 🍎dmg
✔️ 4631941 #3 2023-05-05 12:17:06 ~13 min linux/x86_64 📦tgz
✔️ 4631941 #3 2023-05-05 12:24:00 ~20 min tests/e2e 📄log
✔️ 4631941 #3 2023-05-05 12:31:52 ~28 min windows/x86_64 💿exe
✔️ ef96b10 #4 2023-05-05 15:44:10 ~6 min macos/aarch64 🍎dmg
✔️ ef96b10 #4 2023-05-05 15:57:26 ~20 min tests/imports 📄log
✔️ ef96b10 #4 2023-05-05 16:02:01 ~24 min linux/x86_64 📦tgz
✔️ ef96b10 #4 2023-05-05 16:03:57 ~26 min windows/x86_64 💿exe
✔️ ef96b10 #4 2023-05-05 16:04:02 ~26 min tests/nim 📄log
✔️ ef96b10 #4 2023-05-05 16:10:19 ~32 min macos/x86_64 🍎dmg
✖️ ef96b10 #4 2023-05-05 16:15:05 ~37 min tests/e2e 📄log
✔️ ef96b10 #5 2023-05-05 16:59:44 ~38 min tests/e2e 📄log

@borismelnik
Copy link
Contributor

@mprakhov Could you pls add status go pr link? :)

@jrainville
Copy link
Member

status-go PR status-im/status-go#3455

Copy link
Member

@jrainville jrainville left a comment

Choose a reason for hiding this comment

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

Looks good. I just don't know why we need to pass encrypted to edit. Can't we just change the status-go side to not touch it in edit?

src/app_service/service/community/service.nim Outdated Show resolved Hide resolved
src/backend/communities.nim Outdated Show resolved Hide resolved
@mprakhov mprakhov force-pushed the mp/feat/issue-9942 branch 2 times, most recently from cf52db0 to 4631941 Compare May 5, 2023 12:02
@mprakhov mprakhov requested a review from a team May 5, 2023 12:14
@anastasiyaig
Copy link
Contributor

i tested it in terms of regressions and it looks okay. Creating / leaving communtiy, adding, removing permissions to communities with different level of access (open / request to join). Sadly i can't really verify the encryption thing being On/Off because it is happening totally hidden to user and i was not able to find anything related to this in DB (status-im/status-go#3417 (comment))

@mprakhov mprakhov merged commit 60bd0d2 into master May 5, 2023
@mprakhov mprakhov deleted the mp/feat/issue-9942 branch May 5, 2023 17:04
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.

Community encryption should automatically switch on/off depending on community permissions
6 participants