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

fix(tasks): Not bothering with null user when we have an authed one #7305

Merged
merged 3 commits into from
Aug 8, 2019

Conversation

alanmquach
Copy link
Contributor

null ( authenticated user ) seems silly when we can just display authenticated user

Especially since the authenticated user is the stronger identity.

@@ -147,8 +147,9 @@ <h4>
</span>
</td>
<td>
{{ task.execution.authentication.user === task.getValueFor('user') ? task.execution.authentication.user
: (task.getValueFor('user') + ' (' + (task.execution.authentication.user || 'unknown user') + ')') }}
{{ task.getValueFor('user') ? ( (task.execution.authentication.user === task.getValueFor('user')) ?
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is angular code and we're not investing in it, but I find this particularly difficult to read

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree. It was prettier before prettier

@emjburns
Copy link
Contributor

emjburns commented Aug 8, 2019

Thanks @alanmquach!

christopherthielen added a commit to christopherthielen/deck that referenced this pull request Aug 13, 2019
40c3197 refactor(core/presentation): use render props everywhere (spinnaker#7316)
cef1c09 fix(core/presentation): prevent the hover jitters on pipeline graph labels (spinnaker#7311)
74ea2e7 fix(ui): require application, pipeline, and a status when adding a pipeline trigger (spinnaker#7308)
f3de167 fix(ui): require type on the stage (spinnaker#7304)
834f4ea feat(helm): allow manual execution overrides for helm charts (spinnaker#7312)
ea29d8d fix(tasks): Not bothering with null user when we have an authed one (spinnaker#7305)
christopherthielen added a commit that referenced this pull request Aug 13, 2019
40c3197 refactor(core/presentation): use render props everywhere (#7316)
cef1c09 fix(core/presentation): prevent the hover jitters on pipeline graph labels (#7311)
74ea2e7 fix(ui): require application, pipeline, and a status when adding a pipeline trigger (#7308)
f3de167 fix(ui): require type on the stage (#7304)
834f4ea feat(helm): allow manual execution overrides for helm charts (#7312)
ea29d8d fix(tasks): Not bothering with null user when we have an authed one (#7305)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants