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

NOISSUE - Add Change User Status Documentation #128

Merged
merged 10 commits into from
Aug 24, 2022

Conversation

rodneyosodo
Copy link
Member

What does this do?

Add change user status to enabled and disabled for both cli and api documentations

Which issue(s) does this PR fix/relate to?

None

List any changes that modify/break current functionality

None

Have you included tests for your changes?

No

Did you document any new/modified functionality?

Yes

Notes

N/A

Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
@rodneyosodo rodneyosodo requested a review from a team as a code owner August 18, 2022 13:33
docs/cli.md Outdated
-n, --name string Name query parameter
-o, --offset uint Offset query parameter
-r, --raw Enables raw output mode for easier parsing of output
-S, --status string Status query parameter
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we clarify that it's only for users?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think so. It is the same thing with --email. I am suggesting we change the description for cli i.e

-e, --email string Email query parameter becomes -e, --email string User email query parameter and -S, --status string Status query parameter becomes -S, --status string User status query parameter

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, let's proceed this way. In this particular case, use lowercase user email query parameter and user status query parameter.

Copy link
Contributor

Choose a reason for hiding this comment

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

@0x6f736f646f My bad, please capitalize. I thought string User email query parameter this is the message, not User email query parameter.

Copy link
Member Author

Choose a reason for hiding this comment

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

No problem

dborovcanin and others added 4 commits August 23, 2022 13:23
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
dborovcanin
dborovcanin previously approved these changes Aug 23, 2022
docs/cli.md Outdated
@@ -172,7 +234,7 @@ mainflux-cli provision channels <file> <user_token>

#### Update Channel
```bash
mainflux-cli channels update '{"id":"<channel_id>","name":"myNewName"}' <user_token>
mainflux-cli channels updatev '{"id":"<channel_id>","name":"myNewName"}' <user_token>
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix typo updatev

Copy link
Member Author

@rodneyosodo rodneyosodo Aug 23, 2022

Choose a reason for hiding this comment

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

It is actually not a typo. But I will fix it

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed it in mainflux core repo by this PR https://github.com/mainflux/mainflux/pull/1649

docs/api.md Outdated
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: *
Access-Control-Allow-Headers: *

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this blank line

Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
docs/cli.md Outdated
delete Delete channel
get Get channel
not-connected Not-connected list
update Update channel
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix the indentation

docs/cli.md Outdated
-t, --things-url string Things service URL (default "http://localhost")
-u, --users-url string Users service URL (default "http://localhost")

Use "mainflux-cli channels [command] --help" for more information about a command.

Copy link
Contributor

Choose a reason for hiding this comment

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

remove this blank line

Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
docs/cli.md Outdated
mainflux-cli users get <user_id> <user_token>
```

#### Retrieve All User
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix Retrieve All Users and probably better Retrieve Users or Get Users. BTW, this is not consistent with Get Channels and Get Things

Copy link
Member Author

Choose a reason for hiding this comment

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

I will resort to using Get xxx as it has been implemented for api at #125

rodneyosodo and others added 2 commits August 24, 2022 15:30
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

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

LGTM

@drasko drasko merged commit effade5 into absmach:master Aug 24, 2022
@rodneyosodo rodneyosodo deleted the disableUser branch October 22, 2024 08:05
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.

4 participants