Skip to content

fix(audits): fix report categories displayed in the wrong order#90

Open
LANGERGabrielle wants to merge 1 commit into
spotify:masterfrom
LANGERGabrielle:fix-report-categories-order
Open

fix(audits): fix report categories displayed in the wrong order#90
LANGERGabrielle wants to merge 1 commit into
spotify:masterfrom
LANGERGabrielle:fix-report-categories-order

Conversation

@LANGERGabrielle
Copy link
Copy Markdown

Current behaviour :

Peek 2022-08-22 07-42

With this patch :

Peek 2022-08-22 07-43

PG's jsonb type does not preserve the order of keys.
The report generator relies on the "categories" property to be in a specific order.
@@ -0,0 +1 @@
ALTER TABLE lighthouse_audits ALTER COLUMN report_json TYPE json
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

PG's jsonb type does not preserve the order of keys.
The report generator relies on the "categories" property to be in a specific order.

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.

1 participant