forked from lowlighter/metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugin/achievements): use graphql first for initial setup and fix…
… regex (lowlighter#1532)
- Loading branch information
1 parent
d4d0137
commit 2e12f12
Showing
3 changed files
with
60 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
query AchievementsTotal { | ||
issues:search(query: "created:>1970", type: ISSUE) { | ||
count:issueCount | ||
} | ||
repositories:search(query: "created:>1970", type: REPOSITORY) { | ||
count:repositoryCount | ||
} | ||
users:search(query: "created:>1970", type: USER) { | ||
count:userCount | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/**Mocked data */ | ||
export default function({faker, query, login = faker.internet.userName()}) { | ||
console.debug("metrics/compute/mocks > mocking graphql api result > achievements/total") | ||
return ({ | ||
repositories: {count: faker.number.int(100000)}, | ||
issues: {count: faker.number.int(100000)}, | ||
users: {count: faker.number.int(100000)}, | ||
}) | ||
} |