Skip to content

This is the fix for the JIRA issue CLOUDSTACK-8817. - #810

Merged
asfgit merged 2 commits into
apache:masterfrom
ipudo:feature_x
Sep 13, 2015
Merged

asfgit merged 2 commits into
apache:masterfrom
ipudo:feature_x

Conversation

@ipudo

@ipudo ipudo commented Sep 11, 2015

Copy link
Copy Markdown
Contributor

This is my first contribution to Apache CloudStack. The return values for endpoint and startpoint have now been changed to Integer instead of String. Please let me know if this is the only change that is required or if there are additional files which will be impacted by this change which require modification also.

… for endpoint and startpoint are now Integer instead of String.
@rafaelweingartner

Copy link
Copy Markdown
Member

Interesting your proposal, but you forgot to change the respective getters and setters method.
Didn’t you use an IDE to make that change?
I would also recommend you to adjust the comments on your commit.

@asfbot

asfbot commented Sep 12, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #580 ABORTED

@ipudo

ipudo commented Sep 12, 2015

Copy link
Copy Markdown
Contributor Author

Sorry for not changing the setter. I'm using eclipse now and I can see that there is a FirewallResponse.java file in both cloud and cloudstack-api. Should I make the changes in both places or only in cloudstack-api like last time? Also I have noticed various callers to setStartPort and getStartPort in the project. Will they need to be changed also, or should I leave everything else as it is?

@rafaelweingartner

Copy link
Copy Markdown
Member

@ashwinswaroop, no problem.
About the class duplicity, it just seems that there are two classes, but in reality there is only one. The question is that the project cloudstack-api is located inside the Cloudstack (it is a module). You should open the class that appear to be in cloudstack-api, this way the Eclipse IDE will properly compile and show the errors that the class might have.

Sure you will have to change every single point that uses those getters and setters, if you want to proceed with that proposal.

I just asked about the IDE, because when I saw that you just changed the parameters type, but not the setters and getters, it seemed like someone using VI to edit source files.

@asfbot

asfbot commented Sep 12, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #516 ABORTED

@ipudo

ipudo commented Sep 12, 2015

Copy link
Copy Markdown
Contributor Author

Okay that makes sense. I went through the entire project and found only one caller of setStartPort and setEndPort which was from the relevant class(Firewall Response). There were others, but they were referring to a different class. The relevant caller took an argument of the form x.toString previously, but now since I changed the setter definition and the variable types to Integer, I removed the .toString part since it was already an Integer being converted to a String. There was no getter definition at all in FirewallResponse.java. Should I go ahead and commit? Also, in what way should I adjust the comments on my commit like you mentioned?
Thanks for the help!

@ipudo

ipudo commented Sep 13, 2015

Copy link
Copy Markdown
Contributor Author

@rafaelweingartner I committed and pushed the new changes. I also changed the commit comment like you requested.

@rafaelweingartner

Copy link
Copy Markdown
Member

Now the change seems ok.

I would just suggest you to squash the two commits, and fix the commit message (the first line of the comment is used to create a “title” for the commit, when that first line is too big, it breaks the message when it is displayed in the web view).

LGTM.

@resmo

resmo commented Sep 13, 2015

Copy link
Copy Markdown
Member

LGTM.

@asfgit
asfgit merged commit 221624d into apache:master Sep 13, 2015
asfgit pushed a commit that referenced this pull request Sep 13, 2015
This is the fix for the JIRA issue CLOUDSTACK-8817.This is my first contribution to Apache CloudStack. The return values for endpoint and startpoint have now been changed to Integer instead of String. Please let me know if this is the only change that is required or if there are additional files which will be impacted by this change which require modification also.

* pr/810:
  CLOUDSTACK-8817: listFirewallRules response JSON startport/endport not an int
  This is the fix for the JIRA issue CLOUDSTACK-8817. The return values for endpoint and startpoint are now Integer instead of String.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
@rafaelweingartner

Copy link
Copy Markdown
Member

Automatically merged?!?
I think it would be better to have merged, just after the squash

@asfbot

asfbot commented Sep 13, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #586 ABORTED

@ipudo

ipudo commented Sep 13, 2015

Copy link
Copy Markdown
Contributor Author

@rafaelweingartner Okay so should I still squash the commits or leave it as it is since it says the pull request has been merged and closed? Also I received this message cloudstack-pull-rats #586 ABORTED. Is there anything I need to do?

@rafaelweingartner

Copy link
Copy Markdown
Member

@ashwinswaroop,
Well, now I have no idea what to do. Let’s hope someone with more experience reply to this thread.

@asfbot

asfbot commented Sep 13, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #522 ABORTED

@ipudo

ipudo commented Sep 13, 2015

Copy link
Copy Markdown
Contributor Author

@resmo Do you know the reason for the 2 aborted messages above? Is there anything I should do?

@karuturi

Copy link
Copy Markdown
Member

builds were aborted probably because the PR was merged.

This PR is properly merged to master with below commits

* | |   120e1cc Merge pull request #810 from ashwinswaroop/feature_x 9 hours ago [Wido den Hollander]
|\ \ \
| * | | 221624d CLOUDSTACK-8817: listFirewallRules response JSON startport/endport not an int 11 hours ago [Ashwin Swaroop]
| * | | 4d626c1 This is the fix for the JIRA issue CLOUDSTACK-8817. The return values for endpoint and startpoint are now Integer instead of String. 2 days ago [Ashwin Swaroop]
|

JoaoJandre pushed a commit to scclouds/cloudstack that referenced this pull request Nov 24, 2022
…louds'

Não interromper sincronização de backups em caso de falha

Closes apache#810

See merge request scclouds/scclouds!326
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.

6 participants