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

Filter Project.lastBuild query by localBuilds: { localBuildEmailHash } so we don't see others' local builds #26

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Aug 8, 2023

Telescoping on #25

Uses a canary from chromaui/chromatic-cli#796 and requires https://github.com/chromaui/chromatic/pull/7576 on the backend.

📦 Published PR as canary version: 0.0.27--canary.26.467eecc.0

✨ Test out this PR locally via:

npm install @chromaui/[email protected]
# or 
yarn add @chromaui/[email protected]

@tmeasday tmeasday requested a review from ghengeveld August 8, 2023 11:44
@linear
Copy link

linear bot commented Aug 8, 2023

AP-3463 Pass current git user's email on local/uncommitted builds

If a build is local, rather than reading the commit's committerEmail (as the CLI currently does, instead the CLI should use git config user.email to get the current git user's email.

We could also consider using the logged in user's id and looking up their email, but I don't think there's any benefit in doing that.

Also ensure we pass creatorEmail on all API calls from the CLI and addon

Copy link
Member

@ghengeveld ghengeveld left a comment

Choose a reason for hiding this comment

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

I have some remarks on other PRs that will affect this (I don't dig the creatorEmail argument), but otherwise this PR is 👍

@tmeasday tmeasday changed the title Filter Project.lastBuild query by creatorEmail so we don't see others' local builds Filter Project.lastBuild query by localBuilds: { localBuildEmailHash } so we don't see others' local builds Aug 10, 2023
@tmeasday tmeasday requested a review from ghengeveld August 10, 2023 05:54
ghengeveld and others added 26 commits August 15, 2023 15:44
…f-outdated-builds

Poll for Git repository hash and set `isOutdated` when it changes
…ent-git-users-email-on-localuncommitted-builds
@tmeasday tmeasday merged commit 467eecc into tom/ap-3462-mark-addon-initiated-builds-as-local Aug 22, 2023
@tmeasday tmeasday deleted the tom/ap-3463-pass-current-git-users-email-on-localuncommitted-builds branch August 22, 2023 02:53
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