Small fixes for frostfsid, policy contracts #55

Merged
fyrchik merged 9 commits from fyrchik/frostfs-contract:frostfsid-admin into master 2023-11-29 07:37:14 +00:00

Close #54.

Close #54.
fyrchik changed title from frostfsid-admin to Small fixes for frostfsid, policy contracts 2023-11-28 09:31:47 +00:00
fyrchik force-pushed frostfsid-admin from 362bb968fb to 3c38acea63 2023-11-28 09:32:43 +00:00 Compare
fyrchik requested review from storage-core-committers 2023-11-28 09:32:48 +00:00
fyrchik requested review from storage-core-developers 2023-11-28 09:32:48 +00:00
fyrchik requested review from storage-services-committers 2023-11-28 09:32:54 +00:00
fyrchik requested review from storage-services-developers 2023-11-28 09:33:00 +00:00
dkirillov approved these changes 2023-11-28 10:20:43 +00:00
dkirillov left a comment
Collaborator

Can we also fix typo
Should be ErrNotAuthorized I suppose.

Can we also [fix typo](https://git.frostfs.info/TrueCloudLab/frostfs-contract/src/commit/e56e8d02eee3f6aa35807760610b2bdc5970bd22/policy/policy_contract.go#L28) Should be `ErrNotAuthorized` I suppose.
@ -2,1 +2,3 @@
safemethods: ["version"]
safemethods:
- "version"
- "getAdmin"
Collaborator

Maybe we can add here all read-only methods so the generated client wrapper can handle this method properly (I meand for example for GetSubject method wrapper will return []stackitem.Item then, now this method looks like write one)

Maybe we can add here all read-only methods so the generated client wrapper can handle this method properly (I meand for example for `GetSubject` method wrapper will return `[]stackitem.Item` then, now this method [looks like write one](https://git.frostfs.info/TrueCloudLab/frostfs-contract/src/commit/e56e8d02eee3f6aa35807760610b2bdc5970bd22/rpcclient/frostfsid/client.go#L548))
Poster
Owner

fixed

fixed
dkirillov marked this conversation as resolved
fyrchik force-pushed frostfsid-admin from 3c38acea63 to 00122e8372 2023-11-28 10:54:12 +00:00 Compare
fyrchik force-pushed frostfsid-admin from 00122e8372 to 70746d1a1e 2023-11-28 10:56:17 +00:00 Compare
dkirillov reviewed 2023-11-28 11:42:18 +00:00
@ -27,2 +26,3 @@
// ErrNotAuthorized is returned when the none of the transaction signers
// belongs to the list of autorized keys.
ErrNotAutorized = "none of the signers is not autorized to change the contract"
ErrNotAuthorized = "none of the signers is autorized to change the contract"
Collaborator

ErrNotAuthorized = "none of the signers is autorized to change the contract"
vs
ErrNotAuthorized = "none of the signers is authorized to change the contract" (typo in text also)

`ErrNotAuthorized = "none of the signers is autorized to change the contract"` vs `ErrNotAuthorized = "none of the signers is authorized to change the contract"` (typo in text also)
Poster
Owner

Fixed

Fixed
Collaborator
I'm not sure https://git.frostfs.info/fyrchik/frostfs-contract/src/commit/8d7d2de4a4a681ae6226fddf3a57accf54d86820/policy/policy_contract.go#L28 🙈
Poster
Owner

forgot to push, fixed now

forgot to push, fixed now
dkirillov marked this conversation as resolved
dkirillov approved these changes 2023-11-28 11:42:25 +00:00
dstepanov-yadro approved these changes 2023-11-28 15:05:02 +00:00
fyrchik force-pushed frostfsid-admin from 8d7d2de4a4 to a1b61d3949 2023-11-29 06:38:41 +00:00 Compare
dkirillov approved these changes 2023-11-29 06:41:42 +00:00
fyrchik merged commit a1b61d3949 into master 2023-11-29 07:37:14 +00:00
fyrchik referenced this issue from a commit 2023-11-29 07:37:15 +00:00
fyrchik deleted branch frostfsid-admin 2023-11-29 07:37:16 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-services-developers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-contract#55
There is no content yet.