mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3837] [CLOSED] feat: SH instance analytics data collection #4547
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4547
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3837
Author: @balub
Created: 2/16/2024
Status: ❌ Closed
Base:
release/2024.3.0← Head:feat/sh-usage-analytics-collection📝 Commits (10+)
d7cdeb7chore(common): analytics on spotlight (#3727)0ba33ecfix: request endpoint heading (#3804)0028f6efeat(js-sandbox): exposeatob&btoafunctions for Node.js (#3724)3911c9crefactor: update share request flow (#3805)16803acchore: Oauth temporary ux improvements (#3792)00862ebfeat: secret variables in environments (#3779)5bcc38efeat: support secret environment variables in CLI (#3815)c0fae79fix(sh-admin): persist active selection in the sidebar (#3812)672ee69chore: correct linting errors6a0e73fchore: bump versions📊 Changes
138 files changed (+8317 additions, -10826 deletions)
View changed files
📝
docker-compose.yml(+3 -3)📝
packages/hoppscotch-backend/package.json(+4 -1)📝
packages/hoppscotch-backend/src/admin/infra.resolver.ts(+23 -1)📝
packages/hoppscotch-backend/src/app.module.ts(+4 -0)📝
packages/hoppscotch-backend/src/errors.ts(+6 -0)📝
packages/hoppscotch-backend/src/infra-config/helper.ts(+10 -0)📝
packages/hoppscotch-backend/src/infra-config/infra-config.service.ts(+24 -1)➕
packages/hoppscotch-backend/src/posthog/posthog.module.ts(+9 -0)➕
packages/hoppscotch-backend/src/posthog/posthog.service.ts(+61 -0)📝
packages/hoppscotch-backend/src/types/InfraConfig.ts(+5 -0)📝
packages/hoppscotch-cli/package.json(+2 -1)📝
packages/hoppscotch-cli/src/__tests__/commands/test.spec.ts(+201 -85)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/collection-level-headers-auth-coll.json(+0 -0)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/env-flag-tests-coll.json(+0 -0)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/fails-coll.json(+0 -0)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/malformed-coll-2.json(+0 -0)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/malformed-coll.json(+0 -0)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/notjson-coll.txt(+0 -0)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/passes-coll.json(+0 -0)➕
packages/hoppscotch-cli/src/__tests__/samples/collections/pre-req-script-env-var-persistence-coll.json(+21 -0)...and 80 more files
📄 Description
Closes HSB-363
Description
In this PR we allow basic analytics to be collected from the hosted SH instance and sent to PostHog. Analytics collection is enabled by default and admins can chose to disable it from the admin dashboard which uses a new mutation to toggle data collection by the instance.
Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.