Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Use Posthog instead of Mixpanel to collect stats on new projects creation #227

Merged
merged 4 commits into from
Oct 9, 2024

Conversation

garikbesson
Copy link
Contributor

@garikbesson garikbesson commented Sep 26, 2024

We have to change the PostHog API key before merging

@garikbesson
Copy link
Contributor Author

@race-of-sloths

@race-of-sloths
Copy link

race-of-sloths commented Sep 26, 2024

@garikbesson Thank you for your contribution! Your pull request is now a part of the Race of Sloths!
King of Sloths shakes your hand! Yellow leader's jersey is yours deservedly!

Shows profile picture for the author of the PR

Current status: executed
Reviewer Score
@frol 3

Your contribution is much appreciated with a final score of 3!
You have received 30 Sloth points for this contribution

We would appreciate your feedback or contribution idea that you can submit here

What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow

For contributors:

  • Tag @race-of-sloths inside your pull requests
  • Wait for the maintainer to review and score your pull request
  • Check out your position in the Leaderboard
  • Keep weekly and monthly streaks to reach higher positions
  • Boast your contributions with a dynamic picture of your Profile

For maintainers:

  • Score pull requests that participate in the Race of Sloths
  • Engage contributors with fair scoring and fast responses so they keep their streaks
  • Promote the Race to the point where the Race starts promoting you
  • Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands
  • For contributors
    • Include a PR: @race-of-sloths include to enter the Race with your PR
  • For maintainers:
    • Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
    • Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
    • Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
    • Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called

pkg_version: env!("CARGO_PKG_VERSION").to_string(),
let properties = PosthogProperties {
language: "rs".to_string(),
engine: version().unwrap().to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no value in capturing Rust compiler version. We care about the cargo-near version, so please, see the previous version for CARGO_PKG_VERSION and remove rustc_version dependency

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

@race-of-sloths-bot
Copy link

race-of-sloths-bot commented Oct 9, 2024

@garikbesson Thank you for your contribution! Your pull request is now a part of the Race of Sloths!

Shows inviting banner with latest news.

Shows profile picture for the author of the PR

Current status: waiting for finalization

The pull request is merged, you have 24 hours to finalize your scoring. The scoring ends Thu Oct 10 11:52:11 2024

Reviewer Score
@frol 3

Your contribution is much appreciated with a final score of 3!
You have received 30 Sloth points for this contribution

What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow

For contributors:

  • Tag @race-of-sloths inside your pull requests
  • Wait for the maintainer to review and score your pull request
  • Check out your position in the Leaderboard
  • Keep weekly and monthly streaks to reach higher positions
  • Boast your contributions with a dynamic picture of your Profile

For maintainers:

  • Score pull requests that participate in the Race of Sloths
  • Engage contributors with fair scoring and fast responses so they keep their streaks
  • Promote the Race to the point where the Race starts promoting you
  • Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands
  • For contributors
    • Include a PR: @race-of-sloths include to enter the Race with your PR
  • For maintainers:
    • Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
    • Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
    • Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
    • Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called

Copy link
Contributor

@frol frol left a comment

Choose a reason for hiding this comment

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

@frol frol changed the title Tracking migration chore: Use Posthog instead of Mixpanel to track creation of new projects Oct 9, 2024
@frol frol changed the title chore: Use Posthog instead of Mixpanel to track creation of new projects chore: Use Posthog instead of Mixpanel to collect stats on new projects creation Oct 9, 2024
@frol frol merged commit 1a795ee into main Oct 9, 2024
17 checks passed
@frol frol deleted the tracking-migration branch October 9, 2024 11:52
@frol frol mentioned this pull request Oct 9, 2024
frol added a commit that referenced this pull request Oct 16, 2024
## 🤖 New release
* `cargo-near`: 0.9.0 -> 0.10.0 (⚠️ API breaking changes)
* `cargo-near-build`: 0.1.1 -> 0.2.0 (⚠️ API breaking changes)

### ⚠️ `cargo-near` breaking changes

```
--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.35.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field InteractiveClapContextScopeForBuildCommand.no_wasmopt in /tmp/.tmp9RlqrE/cargo-near/cargo-near/src/commands/build_command/mod.rs:5
  field InteractiveClapContextScopeForBuildCommand.env in /tmp/.tmp9RlqrE/cargo-near/cargo-near/src/commands/build_command/mod.rs:5
  field CliBuildCommand.no_wasmopt in /tmp/.tmp9RlqrE/cargo-near/cargo-near/src/commands/build_command/mod.rs:5
  field CliBuildCommand.env in /tmp/.tmp9RlqrE/cargo-near/cargo-near/src/commands/build_command/mod.rs:5
```

### ⚠️ `cargo-near-build` breaking changes

```
--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.35.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field Opts.no_wasmopt in /tmp/.tmp9RlqrE/cargo-near/cargo-near-build/src/types/near/build/input/mod.rs:34
  field Opts.env in /tmp/.tmp9RlqrE/cargo-near/cargo-near-build/src/types/near/build/input/mod.rs:51

--- failure method_parameter_count_changed: pub method parameter count changed ---

Description:
A publicly-visible method now takes a different number of parameters.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#fn-change-arity
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.35.0/src/lints/method_parameter_count_changed.ron

Failed in:
  cargo_near_build::BuildOpts::get_cli_build_command_in_docker now takes 3 parameters instead of 2, in /tmp/.tmp9RlqrE/cargo-near/cargo-near-build/src/types/near/build/input/docker_context.rs:19
```

<details><summary><i><b>Changelog</b></i></summary><p>

## `cargo-near`
<blockquote>

##
[0.10.0](cargo-near-v0.9.0...cargo-near-v0.10.0)
- 2024-10-16

### Added

- [**breaking**] use `wasm-opt -O` (via wasm-opt-rs) as post-step of
build ([#231](#231))
- `env` flag for external parameters of docker build and regular build
([#226](#226))

### Other

- Use Posthog instead of Mixpanel to collect stats on new projects
creation ([#227](#227))
- Fix tracking usage
([#225](#225))
</blockquote>

## `cargo-near-build`
<blockquote>

##
[0.2.0](cargo-near-build-v0.1.1...cargo-near-build-v0.2.0)
- 2024-10-16

### Added

- [**breaking**] use `wasm-opt -O` (via wasm-opt-rs) as post-step of
build ([#231](#231))
- `env` flag for external parameters of docker build and regular build
([#226](#226))

### Other

- disable github release for `cargo-near-build` via cargo-dist
([#222](#222))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants