Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Conversation

@jklausa
Copy link
Contributor

@jklausa jklausa commented Feb 21, 2019

Description

DJ Khaled voice: Another one!

This adds support for fetching posts published in a specified timeframe in the new architecture.

Testing Details

  • Verify the library builds

  • Verify the tests pass

  • Please check here if your pull request includes additional test coverage.

@jklausa jklausa self-assigned this Feb 21, 2019
@jklausa jklausa requested a review from ScoutHarris February 21, 2019 03:01
Copy link
Contributor

@ScoutHarris ScoutHarris left a comment

Choose a reason for hiding this comment

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

Go go go!

:shipit:

extension StatsServiceRemoteV2 {

// PublishedPostsStatsType hit a different endpoint and with different parameters
// then the rest of the time-based types — we need tco handle them separately here.
Copy link
Contributor

@ScoutHarris ScoutHarris Feb 21, 2019

Choose a reason for hiding this comment

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

Minor type - tco = to.

case .year:
let yearAgo = Calendar.autoupdatingCurrent.date(byAdding: .year, value: -1, to: endDate)!
let january = Calendar.autoupdatingCurrent.date(bySetting: .month, value: 1, of: yearAgo)!
let jan1 = Calendar.autoupdatingCurrent.date(bySetting: .day, value: 1, of: january)!
Copy link
Contributor

Choose a reason for hiding this comment

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

Does jan1 mean "Jan is number 1!"? Subliminal messaging. I like it. 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dang you caught me :D

@jklausa jklausa merged commit 39b26d3 into develop Feb 21, 2019
@jklausa jklausa deleted the feature/fetching-posting-events branch February 21, 2019 20:22
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