Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Conflict when addingcoder_metadata with duplicateresouce_ids #305

Open
0 of 2 issues completed
Open
@matifali

Description

@matifali

Problem Description

  1. While addingcoder_metadata blocks inside a module we need to pass the resource_id to link the metadata to. The issue arises when theresource_id of the instance is linked to an existingcoder_metadata block in the main template, which causes a conflict and the template fails to build.

  2. Attempting to use an alternative identifier, such asagent_id, doesn't show metadata on the workspace page.

Steps to Reproduce

  1. Add acoder_metadata block to a module and link it to theresource_id of an instance.
  2. Add anothercoder_metadata block in the main template referencing the sameresource_id.
  3. Observe the conflict in the failed build.
  4. Attempt to useagent_id instead in the module and note the absence of display metadata.

Impact

  • Limits the flexibility of the coder modules because of possible conflicts.

Next Steps

  • Update the handling ofcoder_metadata to avoid conflicts between module-level and main template declarations when sharing the sameresource_id. One possible solution is to merge and append the newitem entries when we detect a conflict inresource_id.
  • Investigate why theagent_id does not work withcoder_metadata.

Note

We did allow adding multiplecoder_metadata with the sameresource_id. Seecoder/coder#6517.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp