Skip to content

Conversation

@lostlevels
Copy link
Contributor

No description provided.

Copy link
Contributor

@darinkrauss darinkrauss left a comment

Choose a reason for hiding this comment

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

Some thoughts...

@@ -0,0 +1,129 @@
package claimaccount
Copy link
Contributor

Choose a reason for hiding this comment

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

In order to fit in with the other platform and work implementations, how about we move this to notifications/work/users/claim. And, for the others, notifications/work/users/connections/new and notifications/work/users/connections/issues.

Copy link
Contributor Author

@lostlevels lostlevels Jan 12, 2026

Choose a reason for hiding this comment

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

I went with a middle ground of

  • notifications/work/claims
    *notifications/work/connections/requests
  • notifications/work/connections/issues

Not a huge fan of packages where the parent packages are empty. IMO some package named connectionissues gives me pretty good idea of what it deals with, in the same way package stringutil does. When it gets to connections => subcategory is where things can start getting hairy if then sub-subcategories are added.

Copy link
Contributor

@darinkrauss darinkrauss left a comment

Choose a reason for hiding this comment

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

A number of quick, minor changes. Also, I didn't highlight every instance, but please replace all fmt.Errorf with errors.Newf or errors.Wrapf, as appropriate. Otherwise, looks good.


type Metadata struct {
ClinicID string `json:"clinicId,omitempty"`
UserId string `json:"userId,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Uppercase ID per Golang convention:

Suggested change
UserId string `json:"userId,omitempty"`
UserID string `json:"userId,omitempty"`

@darinkrauss
Copy link
Contributor

Also, it looks like the build is failing. Try running make generate build test and, assuming that works, commit the changes. There are probably minor formatting changes.

Copy link
Contributor

@darinkrauss darinkrauss left a comment

Choose a reason for hiding this comment

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

LGTM, just one question out of curiosity.

script:
- export TIMING_CMD='time -p'
- make plugins-visibility-${PLUGINS_VISIBILITY} && make ci
- make "plugins-visibility-${PLUGINS_VISIBILITY}" && make ci
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this to silence some linter warning or another?

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.

3 participants