Skip to content

Conversation

@pablothedude
Copy link
Contributor

@pablothedude pablothedude commented Mar 13, 2020

Add mapper to map local and external (remote vetting) attributes so they can be used to match values on. Currently, only a form is filled in order to select valid attributes.

https://www.pivotaltracker.com/story/show/171571478

@pablothedude pablothedude force-pushed the feature/add-attribute-mapping branch 2 times, most recently from 9789f2a to fc3c617 Compare March 13, 2020 11:00
@pablothedude pablothedude requested a review from MKodde March 16, 2020 08:01
Copy link
Member

@MKodde MKodde left a comment

Choose a reason for hiding this comment

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

All in all this looks good! Several smaller issues should be addressed. See individual feedback entries in the code review for that.

Also, why not utilize the attribute dictionary to verify if the configured attributes actually make sense. This could be done in a DI extension. Or alternatively in the constructor of the mapping helper.

{% block ss_remote_vet_assertion_widget %}
{% spaceless %}
<div class="text_widget">
<h3>{{ form.vars.data.name }}: '{{ form.vars.data.value|join(', ') }}'</h3>
Copy link
Member

Choose a reason for hiding this comment

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

I love that you made this into a widget, that way we have a lot of control over the rendering! Some remakrs/questions/general feedback.

  1. I'm not sure from a semantics standpoint, using a h3 heading here is best? I'm by no means an expert on this topic. But looking at it as a visitor. The large headings are somewhat overpowering. Putting this data into a table might make things much more clear. But that might prove difficult?
  2. Also, more importantly, please make the form.vars.data.name translatable. Or somehow yield the translations from the saml-bundle. Users might not know the meaning of an attribute identifier.
  3. Finally, please remove the (optional) portion of the labels. They make for messy user experience. Especially the ones that fall behind the textareas.

Let me be clear. For a POC this is probably good enough!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because this is a POC I didn't want to take too much effort and didn't added styling whatsoever. I think it's up to the PO first if the form has all fields required. If that's clear we could update the styling. But I certainly agree some additional TLC will be needed.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe still look into points 2 and 3. Especially point 3 would look silly even in a POC demo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Regarding point 2 and 3. I'll create a Pivotal issue for this and address this then so this 'll become none blocking.

@pablothedude pablothedude force-pushed the feature/add-attribute-mapping branch 4 times, most recently from ae2f47f to c4152ae Compare March 16, 2020 14:19
@pablothedude pablothedude requested a review from MKodde March 17, 2020 08:22
@pablothedude pablothedude force-pushed the feature/add-attribute-mapping branch from c4152ae to b183a1b Compare March 17, 2020 10:20
Add mapper to map local and external (remote vetting) attributes
so they could be used to match values on. Currently only a form is
filled in other to select valid attributes.
@pablothedude pablothedude force-pushed the feature/add-attribute-mapping branch from b183a1b to 991710b Compare March 17, 2020 10:22
@pablothedude pablothedude merged commit f055796 into remote-vetting Mar 17, 2020
@MKodde MKodde deleted the feature/add-attribute-mapping branch October 14, 2020 12:40
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.

3 participants