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

sql: create event log entry for schema events #55785

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

neeral
Copy link
Contributor

@neeral neeral commented Oct 20, 2020

Previously, events were not created when schema objects were
created, dropped or modified.

Fixes #55744

Release note (admin ui change): changing schema object
now causes an event to be logged and displayed in the admin ui

@neeral neeral requested a review from a team October 20, 2020 21:15
@blathers-crl
Copy link

blathers-crl bot commented Oct 20, 2020

Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added the O-community Originated from the community label Oct 20, 2020
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@blathers-crl
Copy link

blathers-crl bot commented Oct 21, 2020

Thank you for updating your pull request.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@neeral neeral changed the title WIP sql: create event log entry for schema events sql: create event log entry for schema events Oct 21, 2020
@neeral
Copy link
Contributor Author

neeral commented Oct 21, 2020

PTAL @jordanlewis @knz

@knz
Copy link
Contributor

knz commented Oct 21, 2020

Cc @piyush-singh

Maybe @arulajmani you can review this too?

@jordanlewis
Copy link
Member

@neeral, thanks for the contribution!

@jordanlewis jordanlewis requested a review from a team October 22, 2020 13:24
Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

:lgtm: - @arulajmani feel free to bors if you have no further comments.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

Copy link
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

Forgot to hit send on this -- one small nit otherwise :lgtm:

Reviewable status: :shipit: complete! 2 of 0 LGTMs obtained (waiting on @neeral)


pkg/sql/logictest/testdata/logic_test/event_log, line 532 at r1 (raw file):

DROP TABLE b

statement okG

nit: Looks like there's an accidental G here

Previously, events were not created when schema objects were
created, dropped or modified.

Fixes cockroachdb#55744

Release note (admin ui change): changing schema object
now causes an event to be logged and displayed in the admin ui
Copy link
Contributor Author

@neeral neeral left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 2 stale) (waiting on @arulajmani)


pkg/sql/logictest/testdata/logic_test/event_log, line 532 at r1 (raw file):

Previously, arulajmani (Arul Ajmani) wrote…

nit: Looks like there's an accidental G here

@arulajmani Thanks for catching this. I've removed the accidental G.

PTAL.

@arulajmani
Copy link
Collaborator

Thanks for the quick change and taking this on @neeral!

bors r=jordanlewis,arulajmani

@craig
Copy link
Contributor

craig bot commented Oct 22, 2020

Build succeeded:

@craig craig bot merged commit 8d5790f into cockroachdb:master Oct 22, 2020
@neeral neeral deleted the add_schema_events branch October 22, 2020 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-community Originated from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sql: create event log entry for schema events
5 participants