Closed theneva closed 8 months ago
Should probably add a yarn lint
run as a step in https://github.com/Unleash/unleash-client-node/blob/main/.github/workflows/build-and-test.yaml to avoid regressing in the future
Should probably add a yarn lint run as a step in main/.github/workflows/build-and-test.yaml to avoid regressing in the future
I wholeheartedly agree. I think I'd like to keep this PR as is, though.
lint-staged
run as a pre-commit again, which should also help to prevent further regression/drift.All the changes here appeared to have been merged with #594, so I'm closing this PR for now. Let me know if this is incorrect. And solid work! 👏🏼
I ran
yarn lint:fix
on everything to make the code adhere to the Prettier rules. Ignoringrenovate
, there are no open pull requests at the moment, so I figured it's a good time to get this in.Besides getting the code up to speed, this changeset provides a real benefit to me. We have to float our own patch of the client, so I maintain a fork with a single commit on top.
The current inconsistencies in the code tend to produce conflicts whenever I have to update our fork, which makes upgrading a bit of a pain. In practice, I have to manually format any new code I have to write for the patch, and be careful to never let my IDE try to help out.
In case you're interested, our patch (https://github.com/folio-as/unleash-client-node/commit/6e122a141f01647274e88c254d10430642be960e?diff=unified&w=1) prevents the client from appending every single OpenTelemetry span it produces to the same trace. Depending on its configuration, Tempo handles unleash-client's default behaviour in one of three ways:
This is practically the same issue that was addressed for the Ruby client in https://github.com/Unleash/unleash-client-ruby/pull/161. Given that https://github.com/Unleash/unleash-client-ruby/pull/150 was rejected, I expect that you don't want our patch upstreamed in the Node client either – but if I'm wrong, please let me know! I'd be more than happy to contribute it.