Skip to content

Emphasize IOptionsMonitor in Options topic + updates - #9684

Merged
guardrex merged 4 commits into
masterfrom
guardrex/options
Nov 28, 2018
Merged

guardrex merged 4 commits into
masterfrom
guardrex/options

Conversation

@guardrex

@guardrex guardrex commented Nov 23, 2018 •

Copy link
Copy Markdown
Collaborator

Fixes #9663
Fixes #9662

Internal Review Topic

  • Emphasizes IOptionsMonitor; downplays IOptions
  • Sample to 2.2
  • UE pass
  • xref API links

@HaoK

HaoK commented Nov 26, 2018

Copy link
Copy Markdown
Member

Actually looks like this isn't right, OptionsMonitor is a 2.0 thing, and it looks like the rename hit 1.1 and 1.0 as well

@HaoK

HaoK commented Nov 26, 2018

Copy link
Copy Markdown
Member

I don't think the docs for 1.0 and 1.1 should be updated at all, this should only target 2.0+

@HaoK

HaoK commented Nov 26, 2018

Copy link
Copy Markdown
Member

@ajcvickers as fyi, we are updating the docs to push IOptionsMonitor instead

@guardrex

Copy link
Copy Markdown
Collaborator Author

Yes, I was going by the API browser as a guide to which interfaces/scenarios were made available for given versions ...

https://docs.microsoft.com/dotnet/api/microsoft.extensions.options.ioptionsmonitor-1

... at the bottom, where Applies to is listed on these.

You're saying that the information is incorrect there. I'll react on the update commit ...

IOptionsMonitor is 2.0+.

I guess that's the only one that didn't pan out.

@HaoK

HaoK commented Nov 26, 2018

Copy link
Copy Markdown
Member

Well its more that we refactored things and reimplemented things, so IOptionsMonitor behaves very differently than in 1.0, so even tho its existed prior, we only want to recommend using it everywhere starting in 2.0 (yes this is confusing)

@guardrex

Copy link
Copy Markdown
Collaborator Author

yes this is confusing

lol 😄 ... and this type of thing could get a contractor into trouble 💀. lol 😄

The content is (seemingly) pretty good. I just need to fix up the versioning, so the update shouldn't take long. I hope to have it done by the EOD.

@guardrex

guardrex commented Nov 27, 2018 •

Copy link
Copy Markdown
Collaborator Author

@HaoK I have the feeling that we need to dump the <2.1 coverage (i.e., take the 1.1 topic into a PDF until next June and set the topic up for 2.1 or later). Working with these versioning ranges given the re-implementation work is problematic (e.g., IOptionsMonitor changes at 2.0). We've been taking this approach on a few other topics with similar maintenance issues. Is it ok with you if this topic goes 2.1 or later?

@HaoK

HaoK commented Nov 27, 2018

Copy link
Copy Markdown
Member

Sure I imagine the most important versions for documentation are the LTS and current versions, so 2.1 and later seems a reasonable place to be.

@guardrex

Copy link
Copy Markdown
Collaborator Author

🎉 Wonderful! ... I ❤️ 🔪 those versioning ranges out.

I've sent the PDF off to be posted. As soon as that's online, I'll take this off of WIP. You can look now tho to see if there are any other changes to make.

@guardrex guardrex changed the title Emphasize IOptionsMonitor in Options topic + updates [WIP] Emphasize IOptionsMonitor in Options topic + updates Nov 27, 2018
@guardrex guardrex added the WIP label Nov 27, 2018
@HaoK

HaoK commented Nov 27, 2018

Copy link
Copy Markdown
Member

One minor thing, Post-configuration is supported by everything, its not specific to IOptionsMonitor, its common to all 3 interfaces, just like validation, its something that the IOptionsFactory does automatically which is used by all 3.

@guardrex guardrex changed the title [WIP] Emphasize IOptionsMonitor in Options topic + updates Emphasize IOptionsMonitor in Options topic + updates Nov 27, 2018
@guardrex guardrex removed the WIP label Nov 27, 2018
@guardrex

Copy link
Copy Markdown
Collaborator Author

@HaoK kk ... the link is live ...

https://webpifeed.blob.core.windows.net/webpifeed/Partners/Options_1.1.pdf

I moved the post-config remark out of the list into its own paragraph. Anything else before I call for docs team review?

@guardrex

Copy link
Copy Markdown
Collaborator Author

@HaoK I think I have that post-configure bit under control. I'll ask Scott to help me put the final touches on this now. Let me know if you have anything else to address.

@guardrex
guardrex requested a review from scottaddie November 28, 2018 19:39
@HaoK

HaoK commented Nov 28, 2018

Copy link
Copy Markdown
Member

Cool looks good to me!

@guardrex

Copy link
Copy Markdown
Collaborator Author

@scottaddie Note/reminder on the PDF situation: The 1.1 PDF notice should only appear for <=1.1; but with metadata versioning of >=2.1, it ends in a 💥 😢. Therefore, I think the plan is to leave the metadata versioning off until the PDF can be dropped next June, then the topic can get proper versioning. I think that's the plan. Let me know if we're going another way. btw- I'm only doing this on topics where the versioning is horri-terri-nasti-bad 😝. I prefer to leave the 1.x versioning in place, but it's a giant PITA on some of these topics at this point.

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