Skip to content

DD-33 change report url#61

Open
ghost wants to merge 1 commit intodashboardfrom
DD-33-change-report-ul
Open

DD-33 change report url#61
ghost wants to merge 1 commit intodashboardfrom
DD-33-change-report-ul

Conversation

@ghost
Copy link

@ghost ghost commented Sep 18, 2018

  • update dashboard public url

- update dashboard public url
var instance = DataService.GetInstance(filter.InstanceId);

if (!filter.IsAuthenticated && (string.IsNullOrEmpty(filter.Hash) || instance.Hash != filter.Hash))
if (filter.InstanceId == 0 && filter.Hash == "undefined")
Copy link
Contributor

Choose a reason for hiding this comment

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

can the hash be undefined?

Copy link
Author

@ghost ghost Sep 19, 2018

Choose a reason for hiding this comment

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

yes, when the user is logged, and there is no hash parameter. It is sent as undefined.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it marked as undefined? Who marks it that way. It should better be marked null.
Also, I think the instanceId should be made nullable on the filter, if it can be omitted. And verify if it is null instead of value 0.

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.

1 participant