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

Feat variable specifications #1301

Merged
merged 15 commits into from
Jan 7, 2025
Merged

Feat variable specifications #1301

merged 15 commits into from
Jan 7, 2025

Conversation

PineappleIOnic
Copy link
Member

@PineappleIOnic PineappleIOnic commented Aug 19, 2024

What does this PR do?

This PR implements variable specifications into the console.

Have you read the Contributing Guidelines on issues?

Yes

Feat implement runtime controls
# Conflicts:
#	package-lock.json
#	package.json
Copy link

vercel bot commented Aug 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console-1.6 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 3:46am
console-billing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 3:46am
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 3:46am
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 3:46am
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 3:46am

@coolify-appwrite-org
Copy link

coolify-appwrite-org bot commented Aug 19, 2024

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2024-08-23 03:41:04 CET

# Conflicts:
#	package.json
#	src/routes/(console)/project-[project]/functions/+layout.ts
#	src/routes/(console)/project-[project]/functions/function-[function]/settings/updateRuntime.svelte
#	src/routes/(console)/project-[project]/functions/store.ts
@ArmanNik ArmanNik marked this pull request as draft August 23, 2024 09:21
Base automatically changed from 1.6.x to main August 23, 2024 19:18
@PineappleIOnic PineappleIOnic marked this pull request as ready for review December 18, 2024 00:36
@PineappleIOnic
Copy link
Member Author

2024-12-17.19-04-54.mp4
2024-12-18.12-37-09.mp4

Comment on lines +21 to +23
if (!$templateConfig.specification) {
throw new Error('Please select a specification.');
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you try this flow?
I think template without specification is okay - it can take default value

Copy link
Member Author

Choose a reason for hiding this comment

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

);
await invalidate(Dependencies.FUNCTION);
addNotification({
message: 'Runtime has been updated',
message: 'Runtime settings have been updated',
Copy link
Contributor

Choose a reason for hiding this comment

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

Below this, in HTML, line 93, it says Runtime as title of the card. We might want to rename this to "Settings" too, possibly.

Also important to understand how specs behave during build. Is gb-hours increased properly? Is the limit used properly?

Best to have it explained in Console, or docs.

@@ -51,11 +67,12 @@
$func.providerRepositoryId || undefined,
$func.providerBranch || undefined,
$func.providerSilentMode || undefined,
$func.providerRootDirectory || undefined
$func.providerRootDirectory || undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

We need PR for CLI as well, so CLI stores and sets this new attribute properly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Created the PR for CLI Here: appwrite/sdk-generator#1025

@ernstmul ernstmul merged commit be7aa21 into main Jan 7, 2025
2 checks passed
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