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

feat: unified source code #304

Closed
wants to merge 8 commits into from
Closed

Conversation

mihirm21
Copy link
Member

Signed-off-by: Mihir Mittal <[[email protected]]>

This PR

[REFACTOR] Unify case usage, separators, and punctuation for log

Related Issues

Fixes #298

Notes

Follow-up Tasks

How to test

feat : Unify case usage, seperators and punctuation for logging
feat : back to normal

Signed-off-by: Mihir Mittal <[email protected]>
renovate bot and others added 4 commits January 23, 2023 03:39
…ure#296)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/spf13/viper](https://togithub.com/spf13/viper) | require |
minor | `v1.14.0` -> `v1.15.0` |

---

### Release Notes

<details>
<summary>spf13/viper</summary>

### [`v1.15.0`](https://togithub.com/spf13/viper/releases/tag/v1.15.0)

[Compare
Source](https://togithub.com/spf13/viper/compare/v1.14.0...v1.15.0)

<!-- Release notes generated using configuration in .github/release.yml
at v1.15.0 -->

#### What's Changed

##### Exciting New Features 🎉

- feat: add multiple endpoints support for remote by
[@&#8203;mozartz](https://togithub.com/mozartz) in
[https://github.com/spf13/viper/pull/1464](https://togithub.com/spf13/viper/pull/1464)

##### Enhancements 🚀

- Add DocBlock to WatchConfig by
[@&#8203;glebik000](https://togithub.com/glebik000) in
[https://github.com/spf13/viper/pull/1467](https://togithub.com/spf13/viper/pull/1467)

##### Breaking Changes 🛠

- Drop YAML v2 and TOML v1 by
[@&#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1493](https://togithub.com/spf13/viper/pull/1493)
- Drop support for Go 1.16 by
[@&#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1494](https://togithub.com/spf13/viper/pull/1494)

##### Dependency Updates ⬆️

- build(deps): bump github.com/spf13/afero from 1.9.2 to 1.9.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1465](https://togithub.com/spf13/viper/pull/1465)
- build(deps): bump github.com/magiconair/properties from 1.8.6 to 1.8.7
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1475](https://togithub.com/spf13/viper/pull/1475)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.5 to 2.0.6
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1466](https://togithub.com/spf13/viper/pull/1466)
- build(deps): bump mheap/github-action-required-labels from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1482](https://togithub.com/spf13/viper/pull/1482)
- build(deps): bump github.com/subosito/gotenv from 1.4.1 to 1.4.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1488](https://togithub.com/spf13/viper/pull/1488)
- build(deps): bump github.com/sagikazarmark/crypt from 0.8.0 to 0.9.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1490](https://togithub.com/spf13/viper/pull/1490)

#### New Contributors

- [@&#8203;choar816](https://togithub.com/choar816) made their first
contribution in
[https://github.com/spf13/viper/pull/1481](https://togithub.com/spf13/viper/pull/1481)
- [@&#8203;lol768](https://togithub.com/lol768) made their first
contribution in
[https://github.com/spf13/viper/pull/1485](https://togithub.com/spf13/viper/pull/1485)
- [@&#8203;mozartz](https://togithub.com/mozartz) made their first
contribution in
[https://github.com/spf13/viper/pull/1464](https://togithub.com/spf13/viper/pull/1464)
- [@&#8203;glebik000](https://togithub.com/glebik000) made their first
contribution in
[https://github.com/spf13/viper/pull/1467](https://togithub.com/spf13/viper/pull/1467)

**Full Changelog**:
spf13/viper@v1.14.0...v1.15.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDUuNCIsInVwZGF0ZWRJblZlciI6IjM0LjEwNS40In0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Mihir Mittal <[email protected]>
Signed-off-by: Mihir Mittal <[email protected]>
feat : Unify case usage, seperators and punctuation for logging
Signed-off-by: Mihir Mittal <[email protected]>
@mihirm21 mihirm21 closed this Jan 22, 2023
@mihirm21 mihirm21 reopened this Jan 22, 2023
Copy link
Member

@beeme1mr beeme1mr left a comment

Choose a reason for hiding this comment

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

The log messages look good but please revert the non log related changes.

cmd/root.go Outdated
@@ -19,8 +19,8 @@ var (

var rootCmd = &cobra.Command{
Use: "flagd",
Short: "Flagd is a simple command line tool for fetching and presenting feature flags to services. " +
"It is designed to conform to Open Feature schema for flag definitions.",
Short: "flagd is a simple command line tool for fetching and presenting feature flags to services" +
Copy link
Member

Choose a reason for hiding this comment

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

Please revert the change made to the short description.

"Please note that yaml/yml and json evaluations work the same (yaml/yml files are converted to json internally)")
flags.StringP(serverCertPathFlagName, "c", "", "Server side tls certificate path")
flags.StringP(serverKeyPathFlagName, "k", "", "Server side tls key path")
flags.Int32P(metricsPortFlagName, "m", 8014, "port to serve metrics on")
Copy link
Member

Choose a reason for hiding this comment

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

Please revert the flag argument description changes.

cmd/version.go Outdated
@@ -10,7 +10,7 @@ import (
// versionCmd represents the version command
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of FlagD",
Short: "print the version number of flagd",
Copy link
Member

Choose a reason for hiding this comment

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

Please revert

@@ -6,16 +6,16 @@ highest priority, followed by environment variables and finally config file.
Supported flags are as follows (result of running `./flagd start --help`):

```
-b, --bearer-token string Set a bearer token to use for remote sync
-b, --bearer-token string set a bearer token to use for remote sync
Copy link
Member

Choose a reason for hiding this comment

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

Please revert this.

@@ -168,7 +168,7 @@ func (l *Logger) ClearFields(reqID string) {
// NewZapLogger creates a *zap.Logger using the base config
func NewZapLogger(level zapcore.Level) (*zap.Logger, error) {
cfg := zap.Config{
Encoding: "json",
Encoding: "console",
Copy link
Member

Choose a reason for hiding this comment

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

Please revert this change. It should be handled in a separate PR.

@@ -141,23 +141,23 @@ func NewRecorder(cfg prometheusConfig) *MetricsRecorder {
Namespace: cfg.Prefix,
Subsystem: "http",
Name: "request_duration_seconds",
Help: "The latency of the HTTP requests.",
Help: "the latency of the HTTP requests",
Copy link
Member

Choose a reason for hiding this comment

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

Please the help descriptions for all the connect metrics.

@mihirm21 mihirm21 closed this Jan 25, 2023
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.

[REFACTOR] Unify case usage, seperators and punctuation for logging
2 participants