Skip to content

Change: allow editing a target that a task refers to - #5541

Closed
TheBeast85 wants to merge 1 commit into
greenbone:mainfrom
TheBeast85:change/edit-target-in-use
Closed

Change: allow editing a target that a task refers to#5541
TheBeast85 wants to merge 1 commit into
greenbone:mainfrom
TheBeast85:change/edit-target-in-use

Conversation

@TheBeast85

Copy link
Copy Markdown

What

Drop the inUse handling from the target dialog. The fields are no longer disabled, and handleSaveClick no longer reduces the request to name, comment and alive tests.

Why

Once a task referred to a target, the dialog disabled hosts, port list and every credential, so the scan target of a task could not be corrected here. That mirrored a restriction in gvmd which greenbone/gvmd#3098 removes; with it gone the dialog no longer has to anticipate what gvmd will accept, and any remaining error comes back from gvmd.

Testing

The existing target tests, with the case that asserted the fields are disabled for a target in use turned around to assert they stay editable.

References

Needs greenbone/gvmd#3098.

The target dialog disabled hosts, port list and every credential once the
target was in use, and Target.save then sent only name, comment and alive
tests. The scan target of a task could not be corrected from the interface.

gvmd no longer refuses those changes, so the dialog does not have to guess.
Drop the inUse gating and send the whole form again.
@TheBeast85
TheBeast85 requested a review from a team as a code owner August 18, 2026 21:16
@greenbonebot
greenbonebot enabled auto-merge (rebase) August 18, 2026 21:16
@bjoernricks

Copy link
Copy Markdown
Contributor

Hi, this PR will not be applied. The in use feature is an important concept in our software and removing it has several consequences. Therefore I'll close this PR.

@TheBeast85 please create issues for such big changes first and discuss the possibility of getting the desired changes into the software before creating a PR.

auto-merge was automatically disabled August 19, 2026 05:48

Pull request was closed

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.

2 participants