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

added security attribute to TenantController Get methods and resolved TenantId on server during Installation #155

Merged
merged 2 commits into from
Oct 23, 2019

Conversation

sbwalker
Copy link
Member

No description provided.

@sbwalker sbwalker merged commit b1702f2 into oqtane:master Oct 23, 2019
@@ -95,27 +95,29 @@ private Log ProcessStructuredLog(Log Log)
names.Add(message.Substring(index + 1, message.IndexOf("}", index) - index - 1));
if (values.Length > (names.Count - 1))
{
message = message.Replace("{" + names[names.Count - 1] + "}", values[names.Count - 1]?.ToString() ?? "null");
if (values[names.Count - 1] == null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why you prefer an "IF" instead of "??" operator, readability or technical reason?

@sbwalker
Copy link
Member Author

sbwalker commented Oct 24, 2019

Good question. I prefer the longer conditional form for readability, debugging, and maintenance. If I am skimming a chunk of code it is really easy to follow the flow if you see standard if conditions - the shorter form is more concise but its really easy to miss the embedded conditional logic ( and not all developers are familiar with the shorter syntax - whereas all developers are familiar with the standard form ). That being said, I do use the shorte (rx == y) ? 1: 0; sometimes ( usually in very simplistic scenarios ) - so even I am not 100% consistent.

@fileman
Copy link
Contributor

fileman commented Oct 24, 2019

ok, I will try to remember it for the next PR

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.

2 participants