Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Convert sbAssert and sbValidate into sbAssertWithTelemetry and sbValidateWithTelemetry#1104

Merged
asimonov-msft merged 1 commit into
microsoft:developfrom
asimonov-msft:vsimporter_telemetry
Oct 13, 2016
Merged

Convert sbAssert and sbValidate into sbAssertWithTelemetry and sbValidateWithTelemetry#1104
asimonov-msft merged 1 commit into
microsoft:developfrom
asimonov-msft:vsimporter_telemetry

Conversation

@asimonov-msft

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tools/vsimporter/src/query.cpp Outdated
void queryListSelection(const StringVec& values, const String& queryMessage, const String& itemName, std::vector<size_t>& ret)
{
sbAssert(!values.empty());
sbAssertWithTelemetry(!values.empty(), "Unable to query empty list of values");

@kellymor kellymor Oct 7, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sbAssertWithTelemetry(!values.empty(), "Unable to query empty list of values"); [](start = 2, length = 79)

Would the query message be helpful here? I'm not sure if the query would contain Personally Identifiable Information (PII) or not. #Resolved

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I moved the assert to the calling functions.


In reply to: 82420134 [](ancestors = 82420134)

bool useRelativePath = true;
if (itemHint && !itemHint->pathOverride.empty()) {
sbAssert(!isVariant, "Unexpected path override for variant file: " + realPath);
sbAssertWithTelemetry(!isVariant, "Unexpected path override for variant file: " + realPath);

@kellymor kellymor Oct 7, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

realPath [](start = 86, length = 8)

Could this path contain PII, like a user name, e.g. /mymac/kellymor/projects/ ? Or is this handled by the call to sbAssertWithTelemetry? If the latter, then disregard this comment. #Resolved

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The path does contain PI, but it will be stripped off since it comes after the colon.


In reply to: 82424365 [](ancestors = 82424365)

@kellymor

kellymor commented Oct 7, 2016

Copy link
Copy Markdown
Contributor

:shipit:

@asimonov-msft asimonov-msft force-pushed the vsimporter_telemetry branch 2 times, most recently from 78ce83c to 7efbf6b Compare October 11, 2016 01:08
@asimonov-msft asimonov-msft merged commit 9aee7dd into microsoft:develop Oct 13, 2016
aballway pushed a commit to aballway/WinObjC that referenced this pull request Oct 19, 2016
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.

5 participants