-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[4.11] CLOUDSTACK-10299: UI: fix error in network listing in project mode #2464
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
[4.11] CLOUDSTACK-10299: UI: fix error in network listing in project mode #2464
Conversation
ui/scripts/network.js
Outdated
| } | ||
|
|
||
| /*$.ajax({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have gone over some commented code. What about removing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see a reason why to remove comments, I wanted to fix the issue. Whitespace cleanup was made by my editor automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well.. the commented code is not used. So, there is your reason to remove it. The less "code" (lines) for our eyes to see, the better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see your point. cleaning up commented out code makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Thanks!
|
@resmo thanks for the contributions, but I have a doubt. You say it (the PR) is aimed at 4.11, but you opened a PR against master branch. Which one do you want? |
|
@rafaelweingartner changed the base to 4.11 |
|
@blueorangutan package |
|
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
| $.ajax({ | ||
| url: createURL('listRemoteAccessVpns'), | ||
| data: { | ||
| account: g_account, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this call only used in the project view?
I mean, if I list networks and I am out of the project view, should not ACS filter by these data? Or, is it done automatically in the server side when the users is logged-in?
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1728 |
borisstoyanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@resmo Can we have some screenshots please?
|
@borisstoyanov before or after the patch? I attached the screenshot to the issue in jira. Didn't make one after the patch, as you see "nothing" (no error). |
|
@resmo both if you have. If no, new stuff is what's interesting :) |
|
ready for review |
borisstoyanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@borisstoyanov @rafaelweingartner is this merge ready? |
|
There is still one open question of mine there. It is about some parameters that were removed. I am asking if that removal can affect the loading of information for the default view (view outside of project). |
|
@rafaelweingartner I couldn't test the view with having existing remote vpns configured. But my assumption was that the api is working identically as other list apis returning the results of the current owner. |
|
Got it. I think this one is ready to be merged then. |
|
anything holding you back, @rafaelweingartner ? |
|
Nothing... I was busy with some other things. |
[4.11] CLOUDSTACK-10299: UI: fix error in network listing in project mode


Statically passing account (and domainid) results in a conflict when in project view because projectid and account can not be used together.
Removing the 2 params. fixes the issue. (some whitespace fixes along)