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

Changed Tile, set query begin date off end date if provided. #85

Merged
merged 8 commits into from
Oct 27, 2017

Conversation

wasabibob
Copy link

Updated to always set the XLD task query begin date minus X number of days. Also removed the exception for number of days being out of range 1-90 days. If a number larger than 90 is provided for number of days, the value is truncated to 90 days.

@wasabibob
Copy link
Author

the codacy/pr finding is not really an issue, the synthetic.xml always sets a value for numberOfDays.


if not xldeployServer:
raise Exception("XL Deploy server ID must be provided")

today = org.joda.time.DateTime()
#set the acceptable range of values for numberOfDays
day_range = range(1,91)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this 90 or 91 be a hidden property in the synthetic.xml?
So containing: hidden="true"

Copy link
Author

Choose a reason for hiding this comment

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

I can do that, was confused as to if it just not throw error on the range or if you wanted it hidden. I can update to have hidden="true"

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you misunderstood. numberOfDays is the number the end user can enter.
maxRange would be an additional property that the admin can configure as a hidden property.


if not xldeployServer:
raise Exception("XL Deploy server ID must be provided")

today = org.joda.time.DateTime()
#set the acceptable range of values for numberOfDays
day_range = range(1,91)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you misunderstood. numberOfDays is the number the end user can enter.
maxRange would be an additional property that the admin can configure as a hidden property.

@wasabibob wasabibob merged commit 1eba431 into v2.9.x Oct 27, 2017
@wasabibob wasabibob deleted the 2.9-dev branch October 27, 2017 17:40
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.

None yet

3 participants