Skip to content

Conversation

@yhabteab
Copy link
Member

@yhabteab yhabteab commented Oct 19, 2023

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Oct 19, 2023
@yhabteab yhabteab force-pushed the switch-to-igl branch 2 times, most recently from 4a65442 to 4153415 Compare November 20, 2023 16:49
@yhabteab yhabteab force-pushed the switch-to-igl branch 3 times, most recently from 20f1849 to 88e5158 Compare December 11, 2023 10:42
@yhabteab yhabteab force-pushed the switch-to-igl branch 2 times, most recently from 6287c2e to 4ae3893 Compare May 27, 2024 07:19
@yhabteab
Copy link
Member Author

I had to use the new, not yet merged PR as the DB#BuildColumns() was dropped during the migration to the new library and we have no other direct way to access the internal DB column mapper.

query, _ := database.NewQB(eventRow).SetExcludedColumns("id").Insert(db)
eventID, err := database.InsertObtainID(ctx, tx, query, eventRow)

@julianbrost julianbrost requested a review from oxzi May 27, 2024 08:27
@oxzi oxzi requested a review from Al2Klimov May 28, 2024 13:56
@yhabteab yhabteab force-pushed the switch-to-igl branch 4 times, most recently from 0e466c9 to b68f4f6 Compare May 29, 2024 10:30
@yhabteab yhabteab force-pushed the switch-to-igl branch 2 times, most recently from cf958eb to bba22c5 Compare May 29, 2024 15:34
Copy link
Member

@oxzi oxzi left a comment

Choose a reason for hiding this comment

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

Please feel free removing the now unused utils functions. Otherwise, LGTM.

@yhabteab yhabteab requested review from oxzi and removed request for Al2Klimov May 31, 2024 09:38
oxzi
oxzi previously approved these changes May 31, 2024
go.mod Outdated
github.com/goccy/go-yaml v1.11.3
github.com/google/uuid v1.6.0
github.com/icinga/icingadb v1.1.1-0.20230418113126-7c4b947aad3a
github.com/icinga/icinga-go-library v0.1.1-0.20240529153148-5054d55f8005
Copy link
Collaborator

Choose a reason for hiding this comment

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

I just tagged the new version as v0.2.0, please update this to use the tagged version.

yhabteab added 3 commits June 3, 2024 16:34
The `context.Context` related changes are neccessary as otherwise you
will have to wait for 5m when having Icinga notification started with
invalid database config due to the internal database.Connect retrials.
Lastly, the logging related changes are useful as we want to properly
render the stack traces when we unexpectedly exit from the main function
instead of wrapping the error in a confusing `zap.Error()` json key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants