Skip to content

Add DELETE endpoint for lakeview dashboards in test server#3045

Merged
anton-107 merged 2 commits intomainfrom
anton-107/testserver-dashboards-delete
Jun 12, 2025
Merged

Add DELETE endpoint for lakeview dashboards in test server#3045
anton-107 merged 2 commits intomainfrom
anton-107/testserver-dashboards-delete

Conversation

@anton-107
Copy link
Copy Markdown
Contributor

@anton-107 anton-107 commented Jun 12, 2025

Changes

  1. Add DELETE endpoint for lakeview dashboards in test server
  2. Remove the mocks for DELETE calls in acceptance tests for dashboards deployment

Why

This is the first in the series of changes for using testserver instead of mocks in acceptance tests for dashboards deployment

Related PRs:

#3047

Tests

@anton-107 anton-107 temporarily deployed to test-trigger-is June 12, 2025 11:55 — with GitHub Actions Inactive
Comment thread libs/testserver/dashboards.go Outdated
@anton-107 anton-107 temporarily deployed to test-trigger-is June 12, 2025 12:50 — with GitHub Actions Inactive
@anton-107 anton-107 marked this pull request as ready for review June 12, 2025 13:06
@anton-107 anton-107 enabled auto-merge June 12, 2025 13:06
@anton-107 anton-107 requested a review from denik June 12, 2025 13:06
@anton-107 anton-107 added this pull request to the merge queue Jun 12, 2025
Merged via the queue into main with commit 271b20f Jun 12, 2025
10 checks passed
@anton-107 anton-107 deleted the anton-107/testserver-dashboards-delete branch June 12, 2025 14:57
github-merge-queue Bot pushed a commit that referenced this pull request Jun 12, 2025
…er mimic the Lakeview API (#3047)

## Changes
<!-- Brief summary of your changes that is easy to understand -->
⏺ Change CREATE endpoint for Lakeview dashboards in test server to
closer mimic the Lakeview API:

  - Strip hyphens from dashboard IDs (UUID format)
  - Set LifecycleState to Active by default
  - Construct Path from ParentPath + DisplayName when provided
  - Add pageType field to dashboard pages in serialized content

## Why
<!-- Why are these changes needed? Provide the context that the reviewer
might be missing.
For example, were there any decisions behind the change that are not
reflected in the code itself? -->
This change will allow local acceptance tests to use the test server
instead of defining their own mocks

## Related PRs:
#3045

## Tests
<!-- How have you tested the changes? -->

<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
github-merge-queue Bot pushed a commit that referenced this pull request Jun 13, 2025
…#3048)

## Why
<!-- Why are these changes needed? Provide the context that the reviewer
might be missing.
For example, were there any decisions behind the change that are not
reflected in the code itself? -->
This is the last in the series of changes for using testserver instead
of mocks in acceptance tests for dashboards deployment

## Related PRs
- #3045
- #3047

## Tests
<!-- How have you tested the changes? -->
Existing tests

<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
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