microsoft / microsoft/Forge

FinallyTrees - Ability to execute code before ending the tree walker session

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
334
Forks
61
PR merge metrics
No merged PRs in 30d

Description

This needs a lot more thought, but here's the rough idea. Ability to define some code that will get executed before ending the tree walker session.

The code/Actions(?)/subroutines that get executed could be a growing list as the tree is walked.
Or perhaps they could be added to the ForgeAction definitions themselves.

This would be useful to ensure clean-up code gets executed, even on failure.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the tree walker session and ForgeAction definitions but no files or tests. First inspect the tree-walker session lifecycle and how ForgeAction definitions are represented, then clarify whether cleanup actions accumulate during traversal or belong to actions themselves. Done requires an agreed design and tests showing execution before session end, including failure paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.