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

initial stab at an user update role and test #57

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

lrvick
Copy link
Member

@lrvick lrvick commented Dec 24, 2022

No description provided.

@lrvick lrvick marked this pull request as draft December 24, 2022 08:55
schema/sql/api.sql Outdated Show resolved Hide resolved
schema/sql/api.sql Outdated Show resolved Hide resolved
schema/sql/api.sql Outdated Show resolved Hide resolved
schema/sql/api.sql Outdated Show resolved Hide resolved
schema/sql/api.sql Outdated Show resolved Hide resolved
test/test.mk Outdated Show resolved Hide resolved
@lrvick
Copy link
Member Author

lrvick commented Dec 24, 2022

Any ideas on how to go about deploying this?

@drGrove @daurnimator @RyanSquared

@lrvick lrvick requested a review from drGrove December 24, 2022 19:41
test/test.mk Show resolved Hide resolved
test/test.mk Show resolved Hide resolved
@drGrove
Copy link
Member

drGrove commented Dec 24, 2022

It's in the K8s cluster, no?

@drGrove
Copy link
Member

drGrove commented Dec 24, 2022

It's in the K8s cluster, no?

So we don't have a good way of deploying schema updates just yet. You need to connect to the database directly and apply your patches

@lrvick lrvick marked this pull request as ready for review December 24, 2022 21:56
@lrvick lrvick requested a review from drGrove December 24, 2022 21:56
test/bats/test.bats Show resolved Hide resolved
schema/sql/api.sql Outdated Show resolved Hide resolved
schema/sql/api.sql Outdated Show resolved Hide resolved
schema/sql/api.sql Outdated Show resolved Hide resolved
schema/sql/api.sql Outdated Show resolved Hide resolved
schema/sql/api.sql Outdated Show resolved Hide resolved
@daurnimator
Copy link
Member

In addition to addressing #57 (comment) please partially squash your commits down to logical increments.

@lrvick
Copy link
Member Author

lrvick commented Jan 2, 2023

Partial squashes are not possible without destroying signatures. I can either squash the whole thing as one commit and destroy all history here, or ship it as is.

Personally I prefer highly verbose commits that show the real time-frame and iteration of a set of changes to see a development thought process in the future if I am investigating something.

@daurnimator
Copy link
Member

Partial squashes are not possible without destroying signatures.

Of course. Your new squashed commits should be newly signed.

I can either squash the whole thing as one commit and destroy all history here, or ship it as is.

You can squash some commits into each other.
e.g. git rebase -i origin/master and change some of them to fixup.

Personally I prefer highly verbose commits that show the real time-frame and iteration of a set of changes to see a development thought process in the future if I am investigating something.

The git repo doesn't need to be a permanent record of your exploratory learning.
As a reviewer (both of the PR and in future reviewing the entire repo) I want to see small succint commits that explain what they do.... and that aren't immediately un-done in a following commit (at least without a release in-between).

@lrvick
Copy link
Member Author

lrvick commented Jan 11, 2023

Git history should be immutable. Who cares how many commits it is.

In a shared document like a Google doc, do we go through the history and clean up all the little edits?

Also if there had been three authors in this branch, what would we do then? Would I squash all other peoples changes too and sign for them?

This feels like just adding a lot of extra work with no gain.

@KellerFuchs
Copy link
Member

This feels like just adding a lot of extra work with no gain.

The gain is readability. The point of having version control is being able to see the sequence of changes that led from one state to another, and the point of commit messages is to document the intent of those changes.

So, yeah, I'd argue it's pretty important to make that documentation readable. =^.^'=

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.

4 participants