-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Improve users management through the CLI (#6001) #10492
Conversation
ydelafollye
commented
Feb 26, 2020
- add user subcommand
- add list, create, delete, change-password microcommands
- delete create-user and change-password subcommands
Thanks for PR :) as this is draft I’ll just provide some guidance rather than a formal review. For the commands that have changed, could you add output if someone calls them what the new command will be? |
Thanks for your response, here are outputs for the commands :) https://gist.github.com/ydelafollye/fd2016811178dfd294e76ec94d7bdd41 |
6d3353e
to
821d8e3
Compare
Codecov Report
@@ Coverage Diff @@
## master #10492 +/- ##
==========================================
- Coverage 42.08% 42.05% -0.03%
==========================================
Files 681 681
Lines 75115 75145 +30
==========================================
- Hits 31609 31600 -9
- Misses 38352 38390 +38
- Partials 5154 5155 +1
Continue to review full report at Codecov.
|
Could you please also update the docs? They're located at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating/deleting users in a separate instance might be a problem (e.g. xorm cache).
8cfc42c
to
ff82e82
Compare
Hello,I think It would be fun if you can add a way to import users by a csv file, thanks. |
@a1012112796 I think we are waiting @ydelafollye's changes since we have some reviews. |
can somebody "update" this feature branch? |
Hello there, are you waiting for me to do something else before approving? |
I like the more structured way :) admin -> user -> * action * |
CI failed |
pleace Update Branch |
@ydelafollye lint error! |
Make sure wiki editor sets wiki to true so gitea renders it as a wiki page. Also change the context data attr for edit form. This looks wrong but everywhere else in our code assumes the urlPrefix to be just the repo url when rendering and manually adds /wiki to the rendered url regardless. Fixes go-gitea#11540
…ne (go-gitea#11777) * Make LogDescriptions race safe * Add manager commands for pausing, resuming, adding and removing loggers Signed-off-by: Andrew Thornton <[email protected]> * Placate lint * Ensure that file logger is run! * Add support for smtp and conn Signed-off-by: Andrew Thornton <[email protected]> * Add release-and-reopen Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: techknowlogick <[email protected]> Co-authored-by: Lauris BH <[email protected]>
…sitory's Clone From URL (go-gitea#12053) * update the wiki repository remote origin go-gitea#12050 * wikiRemoteURL is under repo_module * export WikiRemoteURL func * remove redundant space and empty line Co-authored-by: Lauris BH <[email protected]> Co-authored-by: techknowlogick <[email protected]>
- Use system fonts only for text to avoid FOUT - Move font-awesome to npm/webpack - Move NotoColorEmoji to web_src - Remove presumably unneccesary 'PT Sans Narrow' - Simplify webpack import exclusions Fixes: go-gitea#11818 Fixes: go-gitea#11814 Co-authored-by: zeripath <[email protected]> Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
When attempting to verify subkeys the email address verification step requires checking the emails however, these emails are not stored on subkeys but instead on the primary key. This PR will obtain the primaryKey and check against these emails too. Fix go-gitea#12128 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: techknowlogick <[email protected]>
Previously this used a USB icon which required a separate font file used nowhere else so replace it with a octicon and fix the background color on arc-green too.
* Decrease the num_stars when deleting a repo fix go-gitea#11949 Signed-off-by: a1012112796 <[email protected]> * Add migration * use batch * Apply suggestions from code review Co-authored-by: Lauris BH <[email protected]> * fix lint * fix lint * fix ci * fix ci2 * add doctor * duplicate code * fix migration * fix some nits * add start Co-authored-by: Lauris BH <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
* Trim to 255 runes instead of bytes Prevents invalid UTF-8 encoding for Description and Website. Refs go-gitea#7905 * Apply suggestions from code review Co-authored-by: zeripath <[email protected]> Co-authored-by: techknowlogick <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: Lauris BH <[email protected]>
* Remove newline when highlighting random chunks of code Somewhere when tokenizing a newline gets added to code formatted by chroma. This breaks the case of 'added-code' inside of an 'added-line' in a diff. Just remove any newline when processing chunks of code since we don't need it. Fixes go-gitea#12172 * don't process empty lines * This is the proper way to fix this by telling chroma not to add the newline in the first place
* Enable Git Wire Protocol v2 over HTTP * use RunInDirTimeoutEnv * pass $HOME environment variable to git upload-pack
- Update all dependencies excluding octicons - Configure new eslint 7.3.0 rules Co-authored-by: techknowlogick <[email protected]>
… full messages (go-gitea#12186) Closes go-gitea#12185
This reverts commit 97d6fc6.
Rebase seems broken. |
…ments-in-pull-request-label-style * origin/master: [skip ci] Updated translations via Crowdin Fix diff skipping lines (go-gitea#13154) Update go-version v1.2.3 -> v1.2.4 (go-gitea#13169) Vendor Update Go Libs (go-gitea#13166) Prevent panics with missing storage (go-gitea#13164) Improve users management through the CLI (go-gitea#6001) (go-gitea#10492) Change order of possible-owner organizations to alphabetical (go-gitea#13160) Slightly simplify the queue settings code to help reduce the risk of problems (go-gitea#12976) [Vendor] Update go-ldap to v3.2.4 (go-gitea#13163) [skip ci] Updated translations via Crowdin Update external-renderers.en-us.md (go-gitea#13165)