Skip to content

Commit

Permalink
Merge pull request #154 from vtex/feat/filters-date-range
Browse files Browse the repository at this point in the history
Update Date Range Filter
  • Loading branch information
Mecrano authored Apr 18, 2024
2 parents 12b5038 + d43e70a commit e7b53af
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Change
- Filters up to 6 months are now allowed

## [1.8.1] - 2024-03-13

## [1.8.0] - 2023-10-31
Expand Down
2 changes: 1 addition & 1 deletion node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { fieldResolvers } from './resolvers/fieldResolvers'
import { getAffiliateByEmail } from './resolvers/getAffiliateByEmail'
import { schemaDirectives } from './directives'

const TIMEOUT_MS = 30000
const TIMEOUT_MS = 60000

// This is the configuration for clients available in `ctx.clients`.
const clients: ClientsConfig<Clients> = {
Expand Down
2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@types/jest": "^27.0.2",
"@types/node": "^12.0.0",
"@types/ramda": "types/npm-ramda#dist",
"@vtex/api": "6.45.24",
"@vtex/api": "6.46.1",
"@vtex/test-tools": "^3.4.1",
"@vtex/tsconfig": "^0.5.6",
"typescript": "3.9.7"
Expand Down
2 changes: 1 addition & 1 deletion node/service.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"memory": 256,
"ttl": 10,
"timeout": 2,
"timeout": 60,
"minReplicas": 2,
"maxReplicas": 4,
"workers": 1,
Expand Down
10 changes: 5 additions & 5 deletions node/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1658,10 +1658,10 @@
resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.3.tgz#781d360c282436494b32fe7d9f7f8e64b3118aa3"
integrity sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw==

"@vtex/api@6.45.24":
version "6.45.24"
resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.45.24.tgz#5643d80de9b5ac9491c03a47be0329872896a6eb"
integrity sha512-BaNdncM2Jfqdu/DikxrDVH7fdek5vH02nvH4RCyNcZ3KSSYZaKk4QGr2EjEHI/rhkOIbJOlOAW5ol4uDcGbQjQ==
"@vtex/api@6.46.1":
version "6.46.1"
resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.46.1.tgz#55a8755ae48f5400e7f1ed1921cd547950bb7a2a"
integrity sha512-geoxVvyWoQpOQ70Zmx3M8SBkRoGOS/bp9Gy26M+iCue63jofVSwmFz1zf66EaHA1PKOJNRgQPFwY+oeDE1U2lQ==
dependencies:
"@types/koa" "^2.11.0"
"@types/koa-compose" "^3.2.3"
Expand Down Expand Up @@ -5709,7 +5709,7 @@ static-extend@^0.1.1:
define-property "^0.2.5"
object-copy "^0.1.0"

stats-lite@vtex/node-stats-lite#dist:
"stats-lite@github:vtex/node-stats-lite#dist":
version "2.2.0"
resolved "https://codeload.github.com/vtex/node-stats-lite/tar.gz/1b0d39cc41ef7aaecfd541191f877887a2044797"
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion react/components/admin/dashboard/AffiliateOrdersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const AffiliateOrdersTable: FC = () => {
? new Date(query.endDate)
: new Date()

minInitialDate.setMonth(minInitialDate.getMonth() - 3)
minInitialDate.setMonth(minInitialDate.getMonth() - 6)
const [startDate, setStartDate] = useState(startDateInitialValue)
const [endDate, setEndDate] = useState(endDateInitialValue)
// We need to do this because of a circular dependency
Expand Down

0 comments on commit e7b53af

Please sign in to comment.