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

chore_: Remove old status community from the database #5114

Merged
merged 2 commits into from
May 13, 2024

Conversation

Parveshdhull
Copy link
Member

@Parveshdhull Parveshdhull commented May 5, 2024

@Parveshdhull Parveshdhull self-assigned this May 5, 2024
@status-im-auto
Copy link
Member

status-im-auto commented May 5, 2024

Jenkins Builds

Click to see older builds (30)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ da94812 #1 2024-05-05 13:24:57 ~4 min linux 📦zip
✔️ da94812 #1 2024-05-05 13:25:42 ~5 min ios 📦zip
✔️ da94812 #1 2024-05-05 13:26:16 ~5 min android 📦aar
✖️ da94812 #1 2024-05-05 13:56:43 ~36 min tests 📄log
✖️ da94812 #2 2024-05-05 18:19:47 ~36 min tests 📄log
✖️ da94812 #3 2024-05-06 08:38:33 ~34 min tests 📄log
✔️ 0a8d7c9 #2 2024-05-08 10:18:20 ~3 min ios 📦zip
✔️ 0a8d7c9 #2 2024-05-08 10:18:59 ~4 min linux 📦zip
✔️ 0a8d7c9 #2 2024-05-08 10:20:08 ~5 min android 📦aar
✖️ 0a8d7c9 #4 2024-05-08 10:49:44 ~35 min tests 📄log
✔️ e50deb2 #3 2024-05-09 07:44:18 ~2 min linux 📦zip
✔️ e50deb2 #3 2024-05-09 07:44:25 ~2 min android 📦aar
✔️ e50deb2 #3 2024-05-09 07:46:34 ~4 min ios 📦zip
✖️ e50deb2 #5 2024-05-09 08:17:24 ~35 min tests 📄log
✔️ 835c683 #1 2024-05-10 08:28:01 ~4 min linux 📦zip
✔️ 835c683 #1 2024-05-10 08:29:08 ~5 min ios 📦zip
✔️ 835c683 #1 2024-05-10 08:29:54 ~6 min android 📦aar
✖️ 835c683 #1 2024-05-10 09:00:43 ~36 min tests 📄log
✔️ 551a818 #2 2024-05-10 09:10:21 ~1 min android 📦aar
✔️ 551a818 #2 2024-05-10 09:11:14 ~2 min linux 📦zip
✔️ 551a818 #2 2024-05-10 09:14:07 ~5 min ios 📦zip
✖️ 551a818 #2 2024-05-10 09:45:28 ~36 min tests 📄log
✔️ 6ca2ac3 #3 2024-05-10 09:54:18 ~1 min android 📦aar
✔️ 6ca2ac3 #3 2024-05-10 09:54:44 ~2 min linux 📦zip
✔️ 6ca2ac3 #3 2024-05-10 09:55:42 ~3 min ios 📦zip
✔️ 6ca2ac3 #3 2024-05-10 10:33:49 ~41 min tests 📄log
✔️ 01c161a #4 2024-05-10 10:56:26 ~2 min android 📦aar
✔️ 01c161a #4 2024-05-10 10:57:24 ~3 min ios 📦zip
✔️ 01c161a #4 2024-05-10 10:57:48 ~4 min linux 📦zip
✔️ 01c161a #4 2024-05-10 11:35:55 ~42 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ eb7876f #5 2024-05-13 08:59:52 ~2 min linux 📦zip
✔️ eb7876f #5 2024-05-13 09:00:06 ~2 min android 📦aar
✔️ eb7876f #5 2024-05-13 09:01:08 ~3 min ios 📦zip
✔️ eb7876f #5 2024-05-13 09:40:37 ~43 min tests 📄log

@@ -0,0 +1,3 @@
DELETE FROM communities_communities WHERE id = X'039b2da47552aa117a96ea8f1d4d108ba66637c7517a3c94a57b99dbb8a002eda2';
DELETE FROM communities_events WHERE id = X'039b2da47552aa117a96ea8f1d4d108ba66637c7517a3c94a57b99dbb8a002eda2';
DELETE FROM communities_shards WHERE community_id = X'039b2da47552aa117a96ea8f1d4d108ba66637c7517a3c94a57b99dbb8a002eda2';
Copy link
Contributor

Choose a reason for hiding this comment

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

@Parveshdhull I'm not sure about the validity of my feedback, but to be correct, shouldn't the migration also delete records in the following tables? They all contain a column named community_id.

  • activity_center_notifications
  • applied_community_events
  • collapsed_community_categories
  • communities_check_channel_permission_responses
  • communities_control_node
  • communities_permission_token_criteria_results
  • communities_requests_to_leave
  • community_grants
  • community_tokens
  • curated_communities
  • encrypted_community_description_cache
  • encrypted_community_description_id_and_clock
  • encrypted_community_description_missing_keys
  • profile_showcase_communities_contacts
  • profile_showcase_communities_preferences

Copy link
Member Author

Choose a reason for hiding this comment

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

Hi @ilmotta, Thank you very much for your valuable feedback and sharing these tables.
Probably we should also delete from these table too, but I am not sure as DeleteCommunity function only deletes from above three 🤔

func (p *Persistence) DeleteCommunity(id types.HexBytes) error {

Maybe @cammellos will have more info.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe @cammellos will have more info.

Confirmed. Removing from these 3 tables should be enough.

Copy link
Contributor

Choose a reason for hiding this comment

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

Great! Thanks for taking the time to check @Parveshdhull

@Parveshdhull Parveshdhull force-pushed the chore/remove-status-communityf branch from da94812 to 0a8d7c9 Compare May 8, 2024 10:14
@Parveshdhull Parveshdhull force-pushed the chore/remove-status-communityf branch from 0a8d7c9 to e50deb2 Compare May 9, 2024 07:41
@Parveshdhull
Copy link
Member Author

closing the PR as removal of status old community is breaking the tests and needs some workaround

@qfrank qfrank self-assigned this May 10, 2024
@qfrank
Copy link
Contributor

qfrank commented May 10, 2024

reopen this PR, I'll continue work based on this branch

@qfrank qfrank reopened this May 10, 2024
@qfrank qfrank force-pushed the chore/remove-status-communityf branch from 835c683 to 551a818 Compare May 10, 2024 09:08
@qfrank qfrank force-pushed the chore/remove-status-communityf branch 2 times, most recently from 6ca2ac3 to 01c161a Compare May 10, 2024 10:53
@qfrank qfrank force-pushed the chore/remove-status-communityf branch from 01c161a to eb7876f Compare May 13, 2024 08:57
Copy link
Contributor

@osmaczko osmaczko left a comment

Choose a reason for hiding this comment

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

Thanks for this. It was confusing to always have at least one community in the newly created messenger.

@qfrank qfrank merged commit eb6ebad into develop May 13, 2024
8 of 9 checks passed
@qfrank qfrank deleted the chore/remove-status-communityf branch May 13, 2024 13:17
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.

Remove old status community from the database
7 participants