status-go/protocol/requests
shashankshampi 14dcd29eee test_: Code Migration from status-cli-tests
author shashankshampi <shashank.sanket1995@gmail.com> 1729780155 +0530
committer shashankshampi <shashank.sanket1995@gmail.com> 1730274350 +0530

test: Code Migration from status-cli-tests
fix_: functional tests (#5979)

* fix_: generate on test-functional

* chore(test)_: fix functional test assertion

---------

Co-authored-by: Siddarth Kumar <siddarthkay@gmail.com>

feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977)

* feat(accounts)_: Persist acceptance of Terms of Use & Privacy policy (#5766)

The original GH issue https://github.com/status-im/status-mobile/issues/21113
came from a request from the Legal team. We must show to Status v1 users the new
terms (Terms of Use & Privacy Policy) right after they upgrade to Status v2
from the stores.

The solution we use is to create a flag in the accounts table, named
hasAcceptedTerms. The flag will be set to true on the first account ever
created in v2 and we provide a native call in mobile/status.go#AcceptTerms,
which allows the client to persist the user's choice in case they are upgrading
(from v1 -> v2, or from a v2 older than this PR).

This solution is not the best because we should store the setting in a separate
table, not in the accounts table.

Related Mobile PR https://github.com/status-im/status-mobile/pull/21124

* fix(test)_: Compare addresses using uppercased strings

---------

Co-authored-by: Icaro Motta <icaro.ldm@gmail.com>

test_: restore account (#5960)

feat_: `LogOnPanic` linter (#5969)

* feat_: LogOnPanic linter

* fix_: add missing defer LogOnPanic

* chore_: make vendor

* fix_: tests, address pr comments

* fix_: address pr comments

fix(ci)_: remove workspace and tmp dir

This ensures we do not encounter weird errors like:
```
+ ln -s /home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907 /home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907@tmp/go/src/github.com/status-im/status-go
ln: failed to create symbolic link '/home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907@tmp/go/src/github.com/status-im/status-go': File exists
script returned exit code 1
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>

chore_: enable windows and macos CI build (#5840)

- Added support for Windows and macOS in CI pipelines
- Added missing dependencies for Windows and x86-64-darwin
- Resolved macOS SDK version compatibility for darwin-x86_64

The `mkShell` override was necessary to ensure compatibility with the newer
macOS SDK (version 11.0) for x86_64. The default SDK (10.12) was causing build failures
because of the missing libs and frameworks. OverrideSDK creates a mapping from
the default SDK in all package categories to the requested SDK (11.0).

fix(contacts)_: fix trust status not being saved to cache when changed (#5965)

Fixes https://github.com/status-im/status-desktop/issues/16392

cleanup

added logger and cleanup

review comments changes

fix_: functional tests (#5979)

* fix_: generate on test-functional

* chore(test)_: fix functional test assertion

---------

Co-authored-by: Siddarth Kumar <siddarthkay@gmail.com>

feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977)

* feat(accounts)_: Persist acceptance of Terms of Use & Privacy policy (#5766)

The original GH issue https://github.com/status-im/status-mobile/issues/21113
came from a request from the Legal team. We must show to Status v1 users the new
terms (Terms of Use & Privacy Policy) right after they upgrade to Status v2
from the stores.

The solution we use is to create a flag in the accounts table, named
hasAcceptedTerms. The flag will be set to true on the first account ever
created in v2 and we provide a native call in mobile/status.go#AcceptTerms,
which allows the client to persist the user's choice in case they are upgrading
(from v1 -> v2, or from a v2 older than this PR).

This solution is not the best because we should store the setting in a separate
table, not in the accounts table.

Related Mobile PR https://github.com/status-im/status-mobile/pull/21124

* fix(test)_: Compare addresses using uppercased strings

---------

Co-authored-by: Icaro Motta <icaro.ldm@gmail.com>

test_: restore account (#5960)

feat_: `LogOnPanic` linter (#5969)

* feat_: LogOnPanic linter

* fix_: add missing defer LogOnPanic

* chore_: make vendor

* fix_: tests, address pr comments

* fix_: address pr comments

chore_: enable windows and macos CI build (#5840)

- Added support for Windows and macOS in CI pipelines
- Added missing dependencies for Windows and x86-64-darwin
- Resolved macOS SDK version compatibility for darwin-x86_64

The `mkShell` override was necessary to ensure compatibility with the newer
macOS SDK (version 11.0) for x86_64. The default SDK (10.12) was causing build failures
because of the missing libs and frameworks. OverrideSDK creates a mapping from
the default SDK in all package categories to the requested SDK (11.0).

fix(contacts)_: fix trust status not being saved to cache when changed (#5965)

Fixes https://github.com/status-im/status-desktop/issues/16392

test_: remove port bind

chore(wallet)_: move route execution code to separate module

chore_: replace geth logger with zap logger (#5962)

closes: #6002

feat(telemetry)_: add metrics for message reliability (#5899)

* feat(telemetry)_: track message reliability

Add metrics for dial errors, missed messages,
missed relevant messages, and confirmed delivery.

* fix_: handle error from json marshal

chore_: use zap logger as request logger

iterates: status-im/status-desktop#16536

test_: unique project per run

test_: use docker compose v2, more concrete project name

fix(codecov)_: ignore folders without tests

Otherwise Codecov reports incorrect numbers when making changes.
https://docs.codecov.com/docs/ignoring-paths

Signed-off-by: Jakub Sokołowski <jakub@status.im>

test_: verify schema of signals during init; fix schema verification warnings (#5947)

fix_: update defaultGorushURL (#6011)

fix(tests)_: use non-standard port to avoid conflicts

We have observed `nimbus-eth2` build failures reporting this port:
```json
{
  "lvl": "NTC",
  "ts": "2024-10-28 13:51:32.308+00:00",
  "msg": "REST HTTP server could not be started",
  "topics": "beacnde",
  "address": "127.0.0.1:5432",
  "reason": "(98) Address already in use"
}
```
https://ci.status.im/job/nimbus-eth2/job/platforms/job/linux/job/x86_64/job/main/job/PR-6683/3/

Signed-off-by: Jakub Sokołowski <jakub@status.im>

fix_: create request logger ad-hoc in tests

Fixes `TestCall` failing when run concurrently.

chore_: configure codecov (#6005)

* chore_: configure codecov

* fix_: after_n_builds
2024-10-30 14:49:26 +05:30
..
accept_contact_request.go Initial support for mutual contact requests 2022-05-31 09:12:36 +01:00
accept_latest_contact_request_for_contact.go Accept/Dismiss LastestContactRequestForContact endpoint (#2702) 2022-06-17 12:20:43 -04:00
accept_request_to_join_community.go
add_centralized_metric.go feat(metrics)_: add centralized metrics 2024-07-11 10:05:31 +01:00
add_centralized_metric_test.go feat(metrics)_: add centralized metrics 2024-07-11 10:05:31 +01:00
add_contact.go feat: add contact customization color (#4869) 2024-04-03 22:49:57 +08:00
add_role_to_member.go feat: community admin permission functionality (#3569) 2023-06-14 10:15:46 -04:00
add_wallet_connect_session.go Implement wallet connect session CRUD API 2022-08-19 12:32:00 +01:00
ban_user_from_community.go chore: fix ban/unban flow and delete all messages feature (#4743) 2024-02-22 11:25:13 +01:00
build_contact.go Update wakuext_buildContact 2023-03-14 16:57:33 +01:00
cancel_request_to_join_community.go feat(communities): Cancel request to join community (#2915) 2022-10-28 11:41:20 +03:00
check_all_community_channels_permissions.go feat(communities): add addresses to check channel permissions functions (#3910) 2023-08-18 15:50:23 -04:00
check_community_channel_permissions.go feat(communities): add addresses to check channel permissions functions (#3910) 2023-08-18 15:50:23 -04:00
check_permission_to_join_community.go feat(community-permissions): Adds addresses feild to check permissions request (#3858) 2023-08-15 13:26:23 -04:00
clear_history.go
community_channel_share_url.go fix: correct parsing shared url without data (#4283) 2023-11-10 16:33:37 +00:00
community_member_messages.go feat: get and delete community member messages API (#4932) 2024-03-19 20:44:49 +01:00
community_metrics_request.go feat: Collecting community messages count metrics (#3802) 2023-08-01 17:08:57 +04:00
community_tags.go Fix/community tags indices (#4992) 2024-03-26 20:02:12 +00:00
create_account.go test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
create_community_category.go refactor(import-tool): process import data in chunks 2023-01-30 12:23:56 +01:00
create_community_request.go test_: Code Migration from status-cli-tests 2024-10-30 14:49:26 +05:30
create_community_token_permission_request.go feat: New field in TokenCriteria proto 2024-02-27 16:25:26 +01:00
create_one_to_one_chat.go
create_profile_chat.go fx: deprecate profile and timeline chats (#3809) 2023-08-03 17:16:11 +03:00
create_public_chat.go
deactivate_chat.go fix: add option to preserve history on chat delete (#4324) 2023-12-11 13:29:56 +01:00
decline_contact_request.go Support outgoing contact requests (#3120) 2023-02-21 19:08:11 +01:00
decline_request_to_join_community.go
delete_community_category.go
delete_community_member_messages.go feat: get and delete community member messages API (#4932) 2024-03-19 20:44:49 +01:00
delete_community_token_permission.go feat: add CommunityTokenPermission to community description 2023-03-03 09:46:49 +01:00
delete_imported_key.go fix_: ignore log partial API request (#5865) 2024-09-27 11:48:51 +01:00
delete_imported_key_test.go fix_: ignore log partial API request (#5865) 2024-09-27 11:48:51 +01:00
dismiss_community_notifications.go fix: 'Join Community' notification is not getting dismissed (#4267) 2023-12-04 14:48:28 +03:00
dismiss_latest_contact_request_for_contact.go Accept/Dismiss LastestContactRequestForContact endpoint (#2702) 2022-06-17 12:20:43 -04:00
edit_community.go feat: add intro/outro message to communities 2022-05-31 11:41:26 +02:00
edit_community_category.go
edit_community_token_permission_request.go fix: add missing private field when converting permission request 2023-06-19 15:26:42 +02:00
edit_message.go feature: Unfurl status links (#4033) 2023-10-13 13:25:34 +01:00
edit_shared_addresses.go feat: support signing of a join/edit community request from within the app or keycard 2023-11-03 07:49:01 +01:00
enable_and_sync_installation.go feat(sync)!: leftovers work for sync fallback (#5794) 2024-09-19 16:17:46 +08:00
enable_installation_and_pair.go fix(sync)_: sync fallback notification (#5888) 2024-10-07 22:05:37 +08:00
fetch_messages.go feat_: Allow to set custom nodes & log level 2023-11-29 09:31:02 +00:00
get_permissioned_balances_request.go Create endpoint to get permissioned balances 2024-02-07 20:10:49 +00:00
import_discord_channel.go feat(discord): Import single channel from discord (#4160) 2023-10-25 12:32:21 -04:00
import_discord_community.go feat: introduce discord import tool 2022-10-28 09:52:26 +02:00
initialize_application.go feat(metrics)_: add centralized metrics 2024-07-11 10:05:31 +01:00
login.go feat(wallet)_: add status proxy RPC urls for blockchain providers 2024-08-01 08:19:20 +02:00
migrate_keystore_dir.go fix_: ignore log partial API request (#5865) 2024-09-27 11:48:51 +01:00
migrate_keystore_dir_test.go fix_: ignore log partial API request (#5865) 2024-09-27 11:48:51 +01:00
mute_category_request.go feat(categories): Add muted type to category muting shortcut (#3534) 2023-06-02 14:25:32 +03:00
mute_chat_request.go Add muted_till param for chats (#3258) 2023-04-16 17:06:00 +02:00
mute_community_request.go feat(communities): Adds muting interval to community (#3549) 2023-06-17 11:19:05 +03:00
reevaluate_community_members_permissions.go feat: owner and token master permissions (#3912) 2023-08-18 17:29:44 +02:00
remove_role_from_member.go feat: community admin permission functionality (#3569) 2023-06-14 10:15:46 -04:00
reorder_community_category.go
reorder_community_chat.go
request_to_join_community.go fix: reject handling requests to join without revealed accounts (#5549) 2024-08-07 17:57:02 +02:00
restore_account.go feat: adapt create/restore/login endpoints for keycard usage (#5311) 2024-06-26 13:14:27 +02:00
retract_contact_request.go Support outgoing contact requests (#3120) 2023-02-21 19:08:11 +01:00
save_new_waku_node.go fix(config)_: add API calls to set new waku node and max backups 2024-06-04 22:52:18 +07:00
send_contact_request.go Add spiff workflow cmd 2023-03-16 14:31:34 +00:00
send_group_chat_message.go Add spiff workflow cmd 2023-03-16 14:31:34 +00:00
send_one_to_one_message.go Add spiff workflow cmd 2023-03-16 14:31:34 +00:00
set_community_shard.go Always set PubsubTopic in filters 2023-11-18 02:26:34 +02:00
set_community_storenodes.go enable custom community storenodes (#4532) 2024-02-20 17:49:39 +02:00
set_contact_local_nickname.go
set_custom_nodes.go feat_: Allow to set custom nodes & log level 2023-11-29 09:31:02 +00:00
set_customization_color.go feat: implement new endpoint to set customization color (#4568) 2024-02-07 18:20:54 +03:00
set_light_client.go feat_: Allow to set light client 2023-11-29 09:31:02 +00:00
set_log_level.go feat_: Allow to set custom nodes & log level 2023-11-29 09:31:02 +00:00
set_max_log_backups.go fix(config)_: add API calls to set new waku node and max backups 2024-06-04 22:52:18 +07:00
set_store_confirmation_for_messages_sent.go feat(waku)_: allow client to set store confirmations 2024-07-15 09:37:57 +01:00
set_syncing_on_mobile_network.go Check for mobile data connection if setting is on (#5511) 2024-07-26 22:34:57 +01:00
share_community.go feat: add optional inviteMessage to share-community request (#2776) 2022-08-08 13:49:39 +03:00
share_image_message.go
sign_typed_data.go fix_: ignore log partial API request (#5865) 2024-09-27 11:48:51 +01:00
sign_typed_data_test.go fix_: ignore log partial API request (#5865) 2024-09-27 11:48:51 +01:00
toggle_centralized_metrics.go feat(metrics)_: add centralized metrics 2024-07-11 10:05:31 +01:00
toggle_collapsed_community_category.go Add collapsed community categories 2023-03-14 17:13:21 +00:00
toggle_peer_syncing.go Peer syncing toggle (#4758) 2024-03-05 11:44:09 +01:00
unban_user_from_community.go feat: unban user in community 2022-07-04 09:02:33 +02:00
upsert_switcher_card.go Persist switcher cards (#3049) 2023-01-05 21:41:57 +05:30
verified_trusted.go Add notification for trustworthy/untrustworthy 2022-11-16 16:17:13 +00:00
verified_untrustworthy.go Add notification for trustworthy/untrustworthy 2022-11-16 16:17:13 +00:00
verify_database_password.go fix_: ignore log partial API request (#5865) 2024-09-27 11:48:51 +01:00
verify_database_password_test.go fix_: ignore log partial API request (#5865) 2024-09-27 11:48:51 +01:00