-
Notifications
You must be signed in to change notification settings - Fork 48
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
0000635: Indicators values not in order in long period project exports #15
base: master
Are you sure you want to change the base?
Conversation
Hi @manishvishnoi2, thank you for this PR. I am skeptical about the way you fixed the issue because you broke the immutability on the You will have to pass |
@numero-six Hello sir,I will look at the code again and try to fix this. |
@numero-six Plz look at the latest fix.It is done by working on Axis class creating a new function thus not breaking immutability. |
@manishvishnoi2 your second commit has the same problem, immutability is still broken. You just added another setter. You should try to solve the problem just like if the I see that one of them is in Please, look at the issue again, there should be a way. |
@@ -218,6 +218,7 @@ private void createDetailSheet(final IndicatorDTO indicator) throws Throwable { | |||
Map<String, Integer> columnIndexMap = new HashMap<String, Integer>(); | |||
for (PivotTableData.Axis axis : leaves) { | |||
CalcUtils.putHeader(row, ++cellIndex, axis.getLabel()); | |||
axis.setLabel(String.valueOf(cellIndex)); |
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.
@manishvishnoi2 : This needs an indentation fix before the pull request can be merged.
@manishvishnoi2 : Just checking if you had time to fix the issue with the immutability on the |
@spMohanty Yes i am working on it.I will look at reduntant spaces and indentation. |
@numero-six Hello sir, I looked at the problem again.I found out that populator is just filling by applying all the label parameter.Also, rather than using a constructor which has other parameters also , i think using a new method as i did is better.The reason i modified axis is because, to populate cells its using Month-Name string which repeats every 12th time.So we have to change the label which cannot be done at populator but at axis. |
Yeah, if you remove the setter and add a constructor with a label parameter, it would be a better option. |
Fixes 0000635.
Attached example :
Project_synthesis_20160311224211.xls.zip