Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Conversation

@NTaylorMullen
Copy link

@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch from c4efe4a to edc7da8 Compare September 20, 2014 06:09
@NTaylorMullen NTaylorMullen changed the title Add TagHelperDescriptorResolver implementation. [Design] Add TagHelperDescriptorResolver implementation. Sep 20, 2014
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_AddDirective branch from 4cd59eb to 68fd42a Compare September 23, 2014 06:47
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch from edc7da8 to c3f3877 Compare September 23, 2014 06:47
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_AddDirective branch from 68fd42a to 8ba1682 Compare September 24, 2014 00:11
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch from c3f3877 to 7c7b97d Compare September 24, 2014 00:11
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_AddDirective branch from 8ba1682 to 2f775d4 Compare September 25, 2014 07:07
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch 2 times, most recently from 208aaa7 to c729b8a Compare September 25, 2014 17:55
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_AddDirective branch from 2f775d4 to 369a300 Compare September 25, 2014 23:20
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch from c729b8a to 1d2d21e Compare September 25, 2014 23:20
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_AddDirective branch from 369a300 to e9df146 Compare September 26, 2014 20:37
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch 3 times, most recently from 1f61154 to 437a2a5 Compare September 26, 2014 22:19
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove this validation and file an issue for separate triage and tracking

Copy link
Author

Choose a reason for hiding this comment

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

Why? I feel like this definitely belongs in this PR. Part of the DescriptorResolver is verifying that TagHelpers do not conflict.

Copy link
Contributor

Choose a reason for hiding this comment

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

  • you're enlarging this PR to include a validation we may decide isn't needed in v1
  • your placement decisions are leading to an artificial feeling of size that in turn led to an artificial split between two resolution phases
  • even if we decide validation makes sense, it might make more sense as a part that's split out

Copy link
Author

Choose a reason for hiding this comment

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

@dougbu
Copy link
Contributor

dougbu commented Sep 28, 2014


please remove test code from this design PR. just makes it seem more daunting.

@NTaylorMullen
Copy link
Author

I didn't mean for this to be a full [Design] PR, it's just labeled [Design] because it hasnt been touched yet and we all had that offline discussion about labeling PR's as [Design] at first.

@NTaylorMullen NTaylorMullen changed the title [Design] Add TagHelperDescriptorResolver implementation. Add TagHelperDescriptorResolver implementation. Sep 28, 2014
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_AddDirective branch from e9df146 to aff29a9 Compare September 29, 2014 01:15
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch from 437a2a5 to 6ab43f5 Compare September 29, 2014 01:16
@NTaylorMullen
Copy link
Author

Changed pretty much everything about this PR so I didn't bother with an "addressed code review comment" commit. Re-did the description of the PR and updated.

@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_AddDirective branch from aff29a9 to 033cd96 Compare September 29, 2014 01:32
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch from 6ab43f5 to 074916a Compare September 29, 2014 01:34
Copy link
Contributor

Choose a reason for hiding this comment

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

throw an ArgumentException instead, passing nameof(lookupText) to its constructor

@dougbu
Copy link
Contributor

dougbu commented Oct 3, 2014

⌚ (very close)

@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch from 8f2e2a2 to dd34a80 Compare October 4, 2014 00:27
@NTaylorMullen
Copy link
Author

Addressed code review comments.

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: one last "that is"

Copy link
Contributor

Choose a reason for hiding this comment

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

And "A" -> "An"

@dougbu
Copy link
Contributor

dougbu commented Oct 4, 2014

:shipit:

NTaylorMullen added 2 commits October 4, 2014 11:36
- This involved also adding a TagHelperTypeResolver and TagHelperDescriptorFactory.
- The TagHelperTypeResolver is responsible for determining the format of lookup text's used throughout the tag helper system.  By default it handles the following formats:
"assemblyName"
"specificType, assemblyName"
- It also restricts what types are considered TagHelpers.  In this implementation we only accept public, non-nested, non-abstract, non-generic TagHelpers.
- The TagHelperDescriptorFactory is responsible for converting a Type to a TagHelperDescriptor.
- Added tests to validate TagHelperDescriptorResolver, TagHelperTypeResolver and TagHelperDescriptorFactory.

#99
#158
- Tested the descriptor resolver and its underlying dependencies (TagHelperTypeResolver and TagHelperDescriptorFactory).

#99
#158
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_AddDirective branch from 84f0011 to da3051a Compare October 4, 2014 19:52
@NTaylorMullen NTaylorMullen force-pushed the TagHelpers_DescriptorResolver branch from dd34a80 to 268dde0 Compare October 4, 2014 19:52
@NTaylorMullen NTaylorMullen deleted the TagHelpers_DescriptorResolver branch October 20, 2014 18:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants