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

add: convert showing all environment images including uninstalled ones by config #2697

Merged

Conversation

lizable
Copy link
Contributor

@lizable lizable commented Sep 9, 2024

TL;DR

Added option to show all environment images, regardless of installation status.

What changed?

  • Introduced a new configuration option showNonInstalledImages in config.toml.sample
  • Updated ImageEnvironmentSelectFormItems component to use the new configuration
  • Added showNonInstalledImages to the BackendAIConfig type
  • Implemented the new configuration in the BackendAILogin component

Copy link

graphite-app bot commented Sep 9, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the size:S 10~30 LoC label Sep 9, 2024
Copy link
Contributor Author

lizable commented Sep 9, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @lizable and the rest of your teammates on Graphite Graphite

Copy link

github-actions bot commented Sep 9, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.47% (-0% 🔻)
337/6157
🔴 Branches
5.06% (-0% 🔻)
214/4232
🔴 Functions 3.11% 63/2023
🔴 Lines
5.37% (-0% 🔻)
323/6013

Test suite run success

90 tests passing in 11 suites.

Report generated by 🧪jest coverage report action from 7b8aaac

@github-actions github-actions bot added size:L 100~500 LoC and removed size:S 10~30 LoC labels Sep 9, 2024
@yomybaby yomybaby marked this pull request as ready for review September 9, 2024 08:47
e2e/config-test.toml Outdated Show resolved Hide resolved
e2e/test-util.ts Outdated Show resolved Hide resolved
export async function readConfigFileFromPath(page: Page, rawPath) {
const filePath = path.resolve(__dirname, rawPath);
const mockData = await fs.readFile(filePath, 'utf-8');
await page.route('http://127.0.0.1:9081/config.toml', async (route) => {
Copy link
Member

Choose a reason for hiding this comment

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

Please use webuiEndpoint from test-util.ts instead of 127.0.0.1:9081 in this file and login.test.ts.

react/src/components/ImageEnvironmentSelectFormItems.tsx Outdated Show resolved Hide resolved
@lizable lizable force-pushed the feature/support-showing-all-environment-images-by-config branch from bfe2eea to b0ebc2c Compare September 9, 2024 09:03
e2e/config-test.toml Outdated Show resolved Hide resolved
@lizable lizable force-pushed the feature/support-showing-all-environment-images-by-config branch 3 times, most recently from ae95a28 to 4eb23eb Compare September 9, 2024 09:07
e2e/config-test.toml Outdated Show resolved Hide resolved
import { loginAsAdmin, mockConfigToml, webuiEndpoint } from './test-util';
import { test, expect } from '@playwright/test';

test.describe('config read and test', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
test.describe('config read and test', () => {
test.describe('config.toml', () => {

e2e/config.test.ts Outdated Show resolved Hide resolved
@yomybaby yomybaby self-requested a review September 9, 2024 22:49
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

graphite-app bot commented Sep 9, 2024

Merge activity

yomybaby pushed a commit that referenced this pull request Sep 9, 2024
…s by config (#2697)

### TL;DR

Added option to show all environment images, regardless of installation status.

### What changed?

- Introduced a new configuration option `showNonInstalledImages` in `config.toml.sample`
- Updated `ImageEnvironmentSelectFormItems` component to use the new configuration
- Added `showNonInstalledImages` to the `BackendAIConfig` type
- Implemented the new configuration in the `BackendAILogin` component
@yomybaby yomybaby force-pushed the feature/support-showing-all-environment-images-by-config branch from 8a6bc8e to e261a78 Compare September 9, 2024 22:51
…s by config (#2697)

### TL;DR

Added option to show all environment images, regardless of installation status.

### What changed?

- Introduced a new configuration option `showNonInstalledImages` in `config.toml.sample`
- Updated `ImageEnvironmentSelectFormItems` component to use the new configuration
- Added `showNonInstalledImages` to the `BackendAIConfig` type
- Implemented the new configuration in the `BackendAILogin` component
@yomybaby yomybaby force-pushed the feature/support-showing-all-environment-images-by-config branch from e261a78 to 7b8aaac Compare September 9, 2024 22:52
@graphite-app graphite-app bot merged commit 7b8aaac into main Sep 9, 2024
8 checks passed
@graphite-app graphite-app bot deleted the feature/support-showing-all-environment-images-by-config branch September 9, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants