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

fix: Allow GraphQL query to non-installed images #2250

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

rapsealk
Copy link
Member

@rapsealk rapsealk commented Jun 4, 2024

This pull request is a follow-up of #2136.

It has been observed that the images(is_installed: Boolean) GraphQL queries would fail to query images(is_installed: false) due to:

if is_installed is not None:
items = [item for item in items if item.installed]

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue
  • Installer updates including:
    • Fixtures for db schema changes
    • New mandatory config options
  • Update of end-to-end CLI integration tests in ai.backend.test
  • API server-client counterparts (e.g., manager API -> client SDK)
  • Test case(s) to:
    • Demonstrate the difference of before/after
    • Demonstrate the flow of abstract/conceptual models with a concrete implementation
  • Documentation
    • Contents in the docs directory
    • docstrings in public interfaces and type annotations

📚 Documentation preview 📚: https://sorna--2250.org.readthedocs.build/en/2250/


📚 Documentation preview 📚: https://sorna-ko--2250.org.readthedocs.build/ko/2250/

Copy link

graphite-app bot commented Jun 4, 2024

Your org has enabled 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.

Copy link
Member Author

rapsealk commented Jun 4, 2024

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

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

@github-actions github-actions bot added area:docs Documentations comp:manager Related to Manager component size:XS ~10 LoC labels Jun 4, 2024
@rapsealk rapsealk marked this pull request as ready for review June 4, 2024 01:19
@rapsealk rapsealk changed the title fix: Allow query to non-installed images fix: Allow GraphQL query to non-installed images Jun 4, 2024
@rapsealk rapsealk added this to the 24.03 milestone Jun 4, 2024
@rapsealk rapsealk added the type:bug Reports about that are not working label Jun 4, 2024
Copy link

graphite-app bot commented Jun 27, 2024

Merge activity

This pull request is a follow-up of #2136.

It has been observed that the `images(is_installed: Boolean)` GraphQL queries would fail to query `images(is_installed: false)` due to:
https://github.com/lablup/backend.ai/blob/05da1590095a61677402211cc84e74a07340b276/src/ai/backend/manager/models/gql.py#L1175-L1176

**Checklist:** (if applicable)

- [x] Milestone metadata specifying the target backport version
- [x] Mention to the original issue
- [ ] Installer updates including:
  - Fixtures for db schema changes
  - New mandatory config options
- [ ] Update of end-to-end CLI integration tests in `ai.backend.test`
- [ ] API server-client counterparts (e.g., manager API -> client SDK)
- [ ] Test case(s) to:
  - Demonstrate the difference of before/after
  - Demonstrate the flow of abstract/conceptual models with a concrete implementation
- [ ] Documentation
  - Contents in the `docs` directory
  - docstrings in public interfaces and type annotations

<!-- readthedocs-preview sorna start -->
----
📚 Documentation preview 📚: https://sorna--2250.org.readthedocs.build/en/2250/

<!-- readthedocs-preview sorna end -->

<!-- readthedocs-preview sorna-ko start -->
----
📚 Documentation preview 📚: https://sorna-ko--2250.org.readthedocs.build/ko/2250/

<!-- readthedocs-preview sorna-ko end -->
@kyujin-cho kyujin-cho force-pushed the 06-04-fix_allow_query_to_non-installed_images branch from ca978f9 to 61e7a4d Compare June 27, 2024 10:16
@graphite-app graphite-app bot merged commit 61e7a4d into main Jun 27, 2024
29 checks passed
@graphite-app graphite-app bot deleted the 06-04-fix_allow_query_to_non-installed_images branch June 27, 2024 10:20
lablup-octodog pushed a commit that referenced this pull request Jun 27, 2024
This pull request is a follow-up of #2136.

It has been observed that the `images(is_installed: Boolean)` GraphQL queries would fail to query `images(is_installed: false)` due to:
https://github.com/lablup/backend.ai/blob/05da1590095a61677402211cc84e74a07340b276/src/ai/backend/manager/models/gql.py#L1175-L1176

**Checklist:** (if applicable)

- [x] Milestone metadata specifying the target backport version
- [x] Mention to the original issue
- [ ] Installer updates including:
  - Fixtures for db schema changes
  - New mandatory config options
- [ ] Update of end-to-end CLI integration tests in `ai.backend.test`
- [ ] API server-client counterparts (e.g., manager API -> client SDK)
- [ ] Test case(s) to:
  - Demonstrate the difference of before/after
  - Demonstrate the flow of abstract/conceptual models with a concrete implementation
- [ ] Documentation
  - Contents in the `docs` directory
  - docstrings in public interfaces and type annotations

<!-- readthedocs-preview sorna start -->
----
📚 Documentation preview 📚: https://sorna--2250.org.readthedocs.build/en/2250/

<!-- readthedocs-preview sorna end -->

<!-- readthedocs-preview sorna-ko start -->
----
📚 Documentation preview 📚: https://sorna-ko--2250.org.readthedocs.build/ko/2250/

<!-- readthedocs-preview sorna-ko end -->

Backported-from: main (24.09)
Backported-to: 24.03
Backport-of: 2250
rapsealk added a commit that referenced this pull request Jul 4, 2024
Co-authored-by: rapsealk <14137676+rapsealk@users.noreply.github.com>
Co-authored-by: Jeongseok Kang <jskang@lablup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:docs Documentations comp:manager Related to Manager component size:XS ~10 LoC type:bug Reports about that are not working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants