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

added disableSnapshot param to batch files with 'Pages' in title #30718

Merged
merged 11 commits into from Feb 8, 2022

Conversation

adeola-ak
Copy link
Contributor

Closes #30337

As per Issue #30337, these changes are to add the disableSnapshot: false to batch change story parameters that we still wish to have snapshotting on

@adeola-ak adeola-ak requested a review from a team February 5, 2022 05:10
@cla-bot cla-bot bot added the cla-signed label Feb 5, 2022
Copy link
Contributor

@courier-new courier-new left a comment

Choose a reason for hiding this comment

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

I think a couple unwanted changes snuck in with this commit, which are causing the CI checks to fail! Don't worry, we've all done that before. 😛 And it's a great opportunity to practice more git! Let's see if we can drop those auto-generated schema files and the test changes we were making for the DiffHunk stuff.

client/web/src/components/diff/DiffHunk.module.scss Outdated Show resolved Hide resolved
client/shared/src/graphql/schema.ts Outdated Show resolved Hide resolved
@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented Feb 7, 2022

Codenotify: Notifying subscribers in CODENOTIFY files for diff 5d7cf9d...ef21466.

Notify File(s)
@courier-new client/web/src/enterprise/batches/BatchSpecsPage.story.tsx
client/web/src/enterprise/batches/close/BatchChangeClosePage.story.tsx
client/web/src/enterprise/batches/create/CreateBatchChangePage.story.tsx
client/web/src/enterprise/batches/detail/BatchChangeDetailsPage.story.tsx
client/web/src/enterprise/batches/global/DotcomGettingStartedPage.story.tsx
client/web/src/enterprise/batches/list/BatchChangeListPage.story.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewPage.story.tsx
client/web/src/enterprise/batches/repo/BatchChangeRepoPage.story.tsx
@eseliger client/web/src/enterprise/batches/BatchSpecsPage.story.tsx
client/web/src/enterprise/batches/close/BatchChangeClosePage.story.tsx
client/web/src/enterprise/batches/create/CreateBatchChangePage.story.tsx
client/web/src/enterprise/batches/detail/BatchChangeDetailsPage.story.tsx
client/web/src/enterprise/batches/global/DotcomGettingStartedPage.story.tsx
client/web/src/enterprise/batches/list/BatchChangeListPage.story.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewPage.story.tsx
client/web/src/enterprise/batches/repo/BatchChangeRepoPage.story.tsx

Copy link
Contributor

@LawnGnome LawnGnome left a comment

Choose a reason for hiding this comment

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

LGTM, with the caveat that I haven't thought very hard about which stories should be snapshotted, but it's easy enough for us to add more later if we don't have sufficient coverage here.

Good job!

.gitignore Outdated
@@ -106,6 +106,7 @@ coverage/
out/
client/shared/src/schema.ts
client/shared/src/schema/*
client/shared/src/graphql/schema.ts
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally, this should be in a separate PR, but if someone frontendy (like Kelli or Erik) is OK with this, then I am too.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah in general, things that aren't concerned with the main purpose of that PR should be done separately.

For this particular case, I wonder if it's actually needed at all, this file was moved to a different place and should not exist on disk anymore, and if so should just be removed. When we just gitignore it, it could stay around and might cause confusion when this file is accidentally loaded into the TS project? No strong opinion though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh yes, thanks for the heads up on this. I'll make note of that for good practice.
I added that to gitignore because i was having conflicts with that file showing up when i was trying to push the changes on friday. I'll remove it now

Copy link
Member

@eseliger eseliger left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for doing this :)

One small thought, I think we should file a follow-up ticket (or keep the original one open) to re-evaluate how well our components are covered in snapshot tests now. This is a good change to act quickly on our exploding screenshot number, but I think ideally we'd be evaluating some of the individual stories as well, looking where we can combine stories into a single chromatic snapshot perhaps.

.gitignore Outdated
@@ -106,6 +106,7 @@ coverage/
out/
client/shared/src/schema.ts
client/shared/src/schema/*
client/shared/src/graphql/schema.ts
Copy link
Member

Choose a reason for hiding this comment

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

Yeah in general, things that aren't concerned with the main purpose of that PR should be done separately.

For this particular case, I wonder if it's actually needed at all, this file was moved to a different place and should not exist on disk anymore, and if so should just be removed. When we just gitignore it, it could stay around and might cause confusion when this file is accidentally loaded into the TS project? No strong opinion though.

@adeola-ak
Copy link
Contributor Author

@eseliger yea good point, I'll close the original but create a follow up ticket tomorrow to start adressing this

Copy link
Contributor

@courier-new courier-new left a comment

Choose a reason for hiding this comment

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

🙌 Thanks Adeola!

@adeola-ak adeola-ak merged commit 48763a0 into main Feb 8, 2022
@adeola-ak adeola-ak deleted the aa/disable-snapshotting branch February 8, 2022 00:29
davejrt pushed a commit that referenced this pull request Feb 15, 2022
)

* added disableSnapshot param to batch files with 'Pages' in title

* added disableSnapshot param to batch files with 'Pages' in title and removed previous unused changes to diffHunk

* Delete settings.schema.d.ts

* Delete json-schema-draft-07.schema.d.ts

* Delete batch_spec.schema.d.ts

* Delete site.schema.d.ts

* Delete schema.ts

* removed extra spacing

* removed all changes from diff files and removed viewport specs that were not there before

* removed schema from git ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

batchers: enable snapshotting for individual stories
5 participants