-
Notifications
You must be signed in to change notification settings - Fork 243
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
[WIP] Remote triggering a pipeline #158
[WIP] Remote triggering a pipeline #158
Conversation
Codecov Report
@@ Coverage Diff @@
## master #158 +/- ##
==========================================
+ Coverage 66.38% 66.52% +0.13%
==========================================
Files 32 33 +1
Lines 2490 2593 +103
==========================================
+ Hits 1653 1725 +72
- Misses 639 654 +15
- Partials 198 214 +16
Continue to review full report at Codecov.
|
641fdcf
to
fcd7fc3
Compare
Alright, triggering works:
This made the above pipeline execute: Alright, now for arguments:
Came over:
|
Alright... was sending wrong json data. :/ To my defense the error from echo wasn't really helpful:
|
@michelvocks How do you like the display of the tokens? |
WTH. Somehow I messed up the handlers? :O |
@michelvocks Rudimentary user token generation: The slider is the token re-generation part. |
Oh, I just realised I don't need a new window... I can slide the user password thingy. I don't need a new icon. Oh but I do, since it's a separate endpoint. And I need different actions. Not just a |
Ah, I'll only allow token reset for auto user. Since the reset saves the user with the encrypted password. Thus it will no longer match what was there previously. |
@Skarlso I'm not sure if the overview page is the right place for the token display. This information is usually needed once (or twice) but it's not a piece of information which you need regularly. In my opinion, we need an information view in the pipeline details page. Currently, when you open the details page for pipeline you basically see no information about the pipeline (e.g. Name of the pipeline, last successful run, last failed run etc.). Regarding the Auto User: Not quite sure if we should store for every user a UUID when you can only use it for one specific user. And the Auto User needs to be created by the user? Why we are not creating it automatically? |
@michelvocks I agree on the pipeline view. It's not the best place. I am generating the auto user. 🙂 Also agreed that that should be the only user with a token. Hence I'm restricting resetting tokens for any other user. Also I'm disallowing deleting this user. I haven't implemented that yet. |
So, regarding the details view, I kind of want to do that in a separate issue. I think it's a good idea to create a nice details view for pipelines... but I'm unsure I would manage to make that pretty. :D |
@michelvocks alright. Added the last of the coverage. I think this is ready for a review. 👍 |
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.
LGTM ❤️ Thanks a lot @Skarlso 🤗
@michelvocks Np! Thanks! :) |
@michelvocks Done. What do you think? |
Perfect, thanks @Skarlso |
So for now a couple of things:
auto
user needs to be undeletable like the admin user. Still needs to be modifiable because the token might need to be updatedManual: