-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Validate links in frontend in CI #13600
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! I just had one minor comment and a couple of questions, but otherwise approved
package-lock.json
Outdated
@@ -0,0 +1,6 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file add intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely not... I accidentally executed npm i
inside the root directory and apparently missed this. Will remove.
@@ -1,7 +1,7 @@ | |||
import { SegmentAnalytics } from "core/analytics/types"; | |||
import { Feature } from "hooks/services/Feature"; | |||
|
|||
import { UiConfig } from "./uiConfig"; | |||
import { OutboundLinks } from "./links"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good rename
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 14 * * *' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So not necessarily tied to a merge but just periodically check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow will just periodically check, but I also added it to the build, via the gradle build file inside the airbyte-webapp
folder, so that any assemble/build of the gradle project will check it as well. Thus it would be part of our regular Frontend: Build runs. Since some breakage we've seen in the past though came from changes in the docs, I wanted an additional scheduled check.
What
Closes #12694
This PR adds automated validation for all links used in the frontend. We should make sure they are all part of the
links.ts
file (I renamed this fromuiConfig.ts
.This check will run as part of the regular CI build run now. Also in addition there is a scheduled daily check that will post notifications to
#dev-frontend
if the run fails.This also changes the variable name from
config.ui.<link name>
to the more meaningfulconfig.links.