Skip to content

Commit 69a3c76

Browse files
committed
Merge remote-tracking branch 'origin/main' into dependabot/npm_and_yarn/react-error-boundary-6.0.0
2 parents 745032b + a5b4aa4 commit 69a3c76

File tree

14 files changed

+112
-53
lines changed

14 files changed

+112
-53
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: PR Auto Updater
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
- 'release/*'
7+
tags-ignore:
8+
- '*'
9+
10+
jobs:
11+
pr-autoupdate:
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
token: ${{ secrets.BOT_TOKEN }}
19+
20+
- name: Install GitHub CLI
21+
run: |
22+
sudo apt update
23+
sudo apt install gh -y
24+
25+
- name: Configure Git
26+
run: |
27+
git config --global user.email ${{ vars.BOT_EMAIL }}
28+
git config --global user.name ${{ vars.BOT_USERNAME }}
29+
30+
- name: Update PR branches
31+
env:
32+
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
33+
GH_PROMPT_DISABLED: 1
34+
run: |
35+
prs=$(gh pr list --state open --base main --json number,headRefName -q '.[] | [.number, .headRefName] | @tsv')
36+
37+
while IFS=$'\t' read -r number branch; do
38+
echo "Updating PR #$number (branch: $branch)"
39+
40+
git fetch origin "$branch"
41+
git checkout "$branch"
42+
43+
if git merge origin/main --no-edit; then
44+
git push origin HEAD:$branch
45+
echo "✅ Updated $branch"
46+
else
47+
echo "❌ Merge conflict on $branch — skipped."
48+
git merge --abort
49+
fi
50+
done <<< "$prs"

src/components/ObjWizardModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default function StyledModal() {
131131
/>
132132
<Typography variant='body2' mt={2}>
133133
<Link
134-
href='https://apl-docs.net/docs/get-started/installation/akamai-connected-cloud#provision-object-storage-for-the-application-platform'
134+
href='https://techdocs.akamai.com/app-platform/docs/lke-automatic-install#provision-object-storage-for-the-app-platform'
135135
target='_blank'
136136
rel='noopener'
137137
>

src/components/Setting.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const getSettingUiSchema = (settings: GetSettingsInfoApiResponse, setting
6565
isMultitenant: { 'ui:widget': 'hidden' },
6666
isPreInstalled: { 'ui:widget': 'hidden' },
6767
adminPassword: { 'ui:widget': 'hidden' },
68+
useORCS: { 'ui:widget': 'hidden' },
6869
},
6970
kms: {
7071
sops: {

src/components/Users.tsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,18 @@ function UserTeamSelector({
8989
}
9090
return (
9191
<Box sx={{ display: 'flex', alignItems: 'center' }}>
92-
<Checkbox disabled={isDisabled} checked={row?.teams?.includes(teamId)} onChange={handleUserTeamToggle} />
92+
<Tooltip
93+
title={
94+
isDisabled
95+
? 'Team admins are permitted to add or remove users only within the teams they manage. However, they cannot remove themselves or other team admins from those teams.'
96+
: ''
97+
}
98+
placement='right'
99+
>
100+
<span>
101+
<Checkbox disabled={isDisabled} checked={row?.teams?.includes(teamId)} onChange={handleUserTeamToggle} />
102+
</span>
103+
</Tooltip>
93104
</Box>
94105
)
95106
}
@@ -105,9 +116,10 @@ const updateUsers = (onClick: () => void, disabled: boolean) => {
105116
interface Props {
106117
users: GetAllUsersApiResponse
107118
teamId?: string
119+
refetch: () => void
108120
}
109121

110-
export default function ({ users: inUsers, teamId }: Props): React.ReactElement {
122+
export default function ({ users: inUsers, teamId, refetch }: Props): React.ReactElement {
111123
const [users, setUsers] = useState<GetAllUsersApiResponse>(inUsers)
112124
const {
113125
user: sessionUser,
@@ -157,7 +169,13 @@ export default function ({ users: inUsers, teamId }: Props): React.ReactElement
157169
]
158170

159171
const handleUpdateUsers = () => {
160-
update({ teamId, body: users })
172+
const body = users.map((user) => ({
173+
id: user.id,
174+
teams: user.teams || [],
175+
}))
176+
update({ teamId, body }).then(() => {
177+
refetch()
178+
})
161179
}
162180

163181
if (hasExternalIDP) {

src/components/rjsf/Form.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ export default function ({
9494
const initialNameRef = useRef(data?.[nameProp]) // Store initial name once
9595
const initialName = initialNameRef.current // Always refer to the initial name
9696
const docUrl =
97-
schema && schema['x-externalDocsPath'] ? `https://apl-docs.net/${schema['x-externalDocsPath']}` : undefined
97+
schema && schema['x-externalDocsPath']
98+
? `https://techdocs.akamai.com/app-platform/docs/${schema['x-externalDocsPath']}`
99+
: undefined
98100
const keepValues = [[{}]] // rjsf structs that open parts of the form, may not be stripped
99101
const onChangeWrapper = ({ formData, errors }: IChangeEvent<Record<string, unknown>>) => {
100102
// lets check if form data is dirty (has meaningful changes)

src/components/rjsf/ObjectFieldTemplate.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ export default function (props: ObjectFieldTemplateProps): React.ReactElement {
4242
const type = getSchemaType(schema)
4343
if (type === 'boolean' && !inSkipTitle) return
4444
const docUrl =
45-
schema && schema['x-externalDocsPath'] ? `https://apl-docs.net/${schema['x-externalDocsPath']}` : undefined
45+
schema && schema['x-externalDocsPath']
46+
? `https://techdocs.akamai.com/app-platform/docs/${schema['x-externalDocsPath']}`
47+
: undefined
4648
// we may get the title from the following:
4749
// const displayTitle = title
4850
const displayTitle =

src/pages/Users.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ export default function ({
3030

3131
const { t } = useTranslation()
3232
// END HOOKS
33-
const comp = allUsers && <Users users={allUsers} teamId={teamId} />
33+
const comp = allUsers && <Users users={allUsers} refetch={refetchAllUsers} teamId={teamId} />
3434
return <PaperLayout loading={isLoadingAllUsers} comp={comp} title={t('TITLE_USERS', { scope: getRole(teamId) })} />
3535
}

src/pages/builds/create-edit/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ export default function CreateEditBuilds({
126126
} = methods
127127

128128
useEffect(() => {
129-
if (!buildData) return
129+
if (!buildData || isLoadingCodeRepos) return
130130
reset(buildData)
131131
const modeType = watch('mode.type')
132132
const repoUrl = watch(`mode.${modeType}.repoUrl`)
133133
const codeRepo = codeRepos?.find((codeRepo) => codeRepo.repositoryUrl === repoUrl)
134134
setRepoName(codeRepo?.name || '')
135135
setGitService(codeRepo?.gitService || '')
136-
}, [buildData, setValue])
136+
}, [buildData, isLoadingCodeRepos, setValue])
137137

138138
const mutating = isLoadingCreate || isLoadingUpdate || isLoadingDelete || isLoadingCodeRepos
139139
if (!mutating && (isSuccessUpdate || isSuccessDelete)) return <Redirect to={`/teams/${teamId}/container-images`} />
@@ -161,7 +161,7 @@ export default function CreateEditBuilds({
161161
<PaperLayout loading={isLoading} title={t('TITLE_CONTAINER_IMAGE', { buildName, role: 'team' })}>
162162
<LandingHeader
163163
docsLabel='Docs'
164-
docsLink='https://apl-docs.net/docs/for-devs/console/container-images'
164+
docsLink='https://techdocs.akamai.com/app-platform/docs/team-container-images'
165165
title={buildName ? buildData.name : 'Create'}
166166
// hides the first two crumbs (e.g. /teams/teamName)
167167
hideCrumbX={[0, 1]}

src/pages/code-repositories/create-edit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export default function CreateEditCodeRepositories({
207207
<PaperLayout loading={loading || error} title={t('TITLE_CODE_REPOSITORY')}>
208208
<LandingHeader
209209
docsLabel='Docs'
210-
docsLink='https://apl-docs.net/docs/for-devs/console/code-repositories'
210+
docsLink='https://techdocs.akamai.com/app-platform/docs/code-repositories'
211211
title={codeRepositoryName ? data.name : 'Add'}
212212
// hides the first two crumbs (e.g. /teams/teamName)
213213
hideCrumbX={[0, 1]}

src/pages/secrets/create-edit/SecretCreateEditPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export default function SecretCreateEditPage({
231231
<PaperLayout loading={loading || error} title={t('TITLE_SEALEDSECRET', { sealedSecretName, role: 'team' })}>
232232
<LandingHeader
233233
docsLabel='Docs'
234-
docsLink='https://apl-docs.net/docs/for-devs/console/secrets'
234+
docsLink='https://techdocs.akamai.com/app-platform/docs/team-secrets'
235235
title={sealedSecretName ? data.name : 'Create'}
236236
// hides the first two crumbs (e.g. /teams/teamName)
237237
hideCrumbX={[0, 1]}

0 commit comments

Comments
 (0)