Skip to content

Conversation

@macqueen
Copy link
Contributor

@macqueen macqueen commented Jan 5, 2019

going to refactor the discover endpoint to use this too (since that's where @billyvg needs it)

@macqueen macqueen requested a review from wedamija January 5, 2019 00:37
lynnagara added a commit that referenced this pull request Jan 7, 2019
Extract common components and functions from the organization and
project release overview pages.

Depends on #11380
delta = end - start
if delta < MIN_STATS_PERIOD or delta > MAX_STATS_PERIOD:
raise InvalidParams(
'Time window must be greater than an hour and less than or equal to 90 days')
Copy link
Member

Choose a reason for hiding this comment

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

Might make sense to make this string dynamic so that it doesn't break if we change min/max period

assert end is None

@freeze_time('2018-12-11 03:21:34')
def test_relative_date_range(self):
Copy link
Member

Choose a reason for hiding this comment

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

Could be worth testing having statsPeriod(Start|End) missing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

lynnagara added a commit that referenced this pull request Jan 8, 2019
Extract common components and functions from the organization and
project release overview pages.

Depends on #11380
@macqueen macqueen force-pushed the feat-relative-date-ranges-api branch from aac8851 to f85c5fc Compare January 9, 2019 00:59
lynnagara added a commit that referenced this pull request Jan 9, 2019
Extract common components and functions from the organization and
project release overview pages.

Depends on #11380
@macqueen macqueen merged commit bd15f65 into master Jan 9, 2019
@macqueen macqueen deleted the feat-relative-date-ranges-api branch January 9, 2019 18:58
lynnagara added a commit that referenced this pull request Jan 9, 2019
Extract common components and functions from the organization and
project release overview pages.

Depends on #11380
jan-auer added a commit that referenced this pull request Jan 10, 2019
* master: (56 commits)
  feat(issues) Add skeleton for Org wide issues (#11420)
  fix(api): Fix broken spam email blocking code
  don't need this white background anymore and it causes a bug on hosted setup (#11436)
  fix(charts): Fix max value for WorldMapChart (#11404)
  feat(issues): Add issues icon to sidebar (#11439)
  build: Remove 'exports' from sourcemaps sources prefix (#11438)
  fix: Render integration description as markdown in search (#11441)
  ref: Import jquery when it's used (#11430)
  fix(ui): Render message params (#11432)
  ref(releases): Refactor projects/organization release overview  (#11392)
  ref(groups): Refactor project group details (#11422)
  feat(2fa): Allow org to reset member 2fa (#11152)
  feat(api): Add relative stats period support to get_date_range_from_params (#11380)
  chore: Remove group-unmerge flag (#11431)
  fix(ui) Fix 'other' tag bucket to have a proper tooltip (#11433)
  build(dev): Add `yarn dev` script to start sentry devserver (#11360)
  ref(charts): Change PercentageBarChart -> PercentageAreaChart (#11401)
  feat(discover): Zerofill queries that are grouped by time (#11384)
  test: Add coverage for breadcrumb message scrubbing
  feat(releases): Add all organization release routes (#11377)
  ...
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants