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
accept_latest_contact_request_for_contact.go
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
add_wallet_connect_session.go
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
cancel_request_to_join_community.go
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
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
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
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
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
edit_community.go
edit_community_category.go
edit_community_token_permission_request.go
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
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
mute_chat_request.go
mute_community_request.go
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
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
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
send_group_chat_message.go
send_one_to_one_message.go
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
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
toggle_peer_syncing.go Peer syncing toggle (#4758) 2024-03-05 11:44:09 +01:00
unban_user_from_community.go
upsert_switcher_card.go
verified_trusted.go
verified_untrustworthy.go
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