Skip to content

feat: update usage of getActiveProject to getCheckedOutProject#1360

Merged
josephjclark merged 10 commits intorelease/nextfrom
get-active-project
Apr 10, 2026
Merged

feat: update usage of getActiveProject to getCheckedOutProject#1360
josephjclark merged 10 commits intorelease/nextfrom
get-active-project

Conversation

@doc-han
Copy link
Copy Markdown
Collaborator

@doc-han doc-han commented Apr 8, 2026

Short Description

We've had some wrong usages of getActiveProject where getCheckedoutProject was supposed to be used.
This pR reviews all usages and makes the needed change. one picks from the last pull state and the other picks project from disk(actually checked out project)

Fixes #1359

Implementation Details

A more detailed breakdown of the changes, including motivations (if not provided in the issue).

QA Notes

List any considerations/cases/advice for testing/QA here.

AI Usage

Please disclose whether you've used AI anywhere in this PR (it's cool, we just
want to know!):

  • I have used Claude Code
  • I have used another model
  • I have not used AI

You can read more details in our
Responsible AI Policy

Release branch checklist

Delete this section if this is not a release PR.

If this IS a release branch:

  • Run pnpm changeset version from root to bump versions
  • Run pnpm install
  • Commit the new version numbers
  • Run pnpm changeset tag to generate tags
  • Push tags git push --tags

Tags may need updating if commits come in after the tags are first generated.

@github-project-automation github-project-automation bot moved this to New Issues in Core Apr 8, 2026
@doc-han doc-han marked this pull request as ready for review April 9, 2026 12:11
@doc-han doc-han requested a review from josephjclark April 9, 2026 12:11
@doc-han
Copy link
Copy Markdown
Collaborator Author

doc-han commented Apr 9, 2026

@josephjclark this is green now. I'll be setting the base of #1358 to this to make sure that PR works from this branch.

@josephjclark
Copy link
Copy Markdown
Collaborator

Looks good @doc-han . Will you be doing any work on those tests or is this ready to merge?

@doc-han
Copy link
Copy Markdown
Collaborator Author

doc-han commented Apr 9, 2026

Looks good @doc-han . Will you be doing any work on those tests or is this ready to merge?

I'm updating the tests. then it's ready to merge

@doc-han doc-han requested a review from josephjclark April 10, 2026 07:33
@josephjclark josephjclark changed the base branch from main to release/next April 10, 2026 09:11
@josephjclark josephjclark merged commit 6829bdc into release/next Apr 10, 2026
7 checks passed
@josephjclark josephjclark deleted the get-active-project branch April 10, 2026 09:15
@github-project-automation github-project-automation bot moved this from New Issues to Done in Core Apr 10, 2026
josephjclark added a commit that referenced this pull request Apr 10, 2026
* update the worker to node 24 (#1357)

* update the worker to node 24

* update docker docs

* changeset

* Worker: fix an issue with batch logging (#1353)

* set min-release-age

* versions

* debugging flaky test

* fix an issue where the batch is never clear

* fix a timing issue when sending batch events

Big help from claude

* logging

* add a bunch of more controlled unit tests

* test on interrupt

* update and fix tests

I think this this fixes the actual issue - I just want more good focused tests now

* tidy logging

* more tests

* changeset

* types

* remove only

* run tests in serial

* worker: tweak event processor and be sure to reset timeout on batch

* remove comment

* remove more comments

* feat: update usage of getActiveProject to getCheckedOutProject (#1360)

* feat: update getActiveProject to getCheckedOutProject

* feat: back to active project

* chore: rename getActiveProject to getTrackedProject

* feat: deploy should use getTrackedProject

* chore: getCheckedout return undefined like getActiveprojects

* fix: types

* feat: update removed & renamed workflows on checkout (#1358)

* tests: remove unwanted fields

* feat: use currentProject

* tests: remove fields

* versions

---------

Co-authored-by: Farhan Y. <yahyafarhan48@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Workspace: getActiveProject is dangerously misleading!

3 participants