GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(apexdoc): add since tags with release versions to all members by dschach · Pull Request #411 · dschach/salesforce-trigger-framework

Conversation

@dschach

@dschach dschach commented Nov 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Give every member in the Apex classes a @since tag whose value is the release version that first included it, so that the generated docs show when each method, property, and class came into the package.

Changes

  • Version 2 members: add @since to the 70 members that are new in version 2 and had no @since tag. Most are private fields, inner-class members of BypassRegistry and LoopCounterRegistry, and test members. No @author tags are added to them.

  • Version 1 members: add @since to the 113 members that are from version 1 and had no @since tag. No @author tags are added to them.

  • Dates to versions: replace the date in each of the 61 existing @since tags, in the member and class comments, with a release version. A tag with a change note, such as Return the handler, so that you can chain calls, gets the release of that change and keeps its text.

  • Inner classes: add the David Schach @author tag of the class comments to the 8 inner classes: BypassRegistry, LoopCounterRegistry, LoopCounter, and TriggerHandlerException in TriggerHandler, PermissionHandler in TriggerHandlerBypassPermissionTest, and TestHandlerException, TestHandler, and UntypedHandler in TriggerHandlerTest. The @since values of 7 of them already match the first release of each class. LoopCounter now has 2 @since tags: 1.0.0, the release that added it as LoopCount, and 1.5.1, the release that renamed it to LoopCounter. Each tag has a note that says what happened.

  • Bypass permission test: add the David Schach @author tag to the class comment of TriggerHandlerBypassPermissionTest, which had none. Its @since 2.1.0 is the release that added the class, so it stays.

  • Test handler overrides: add an ApexDoc comment with @since to the 9 overrides in TriggerHandlerTest.TestHandler, which had no comment.

  • Sample README: the pre-commit hook copied the new tags of AccountSampleTriggerHandler into sample-handler/README.md.

Behavior notes

Only ApexDoc comments change. No code and no signature changes. The only new @author tags are on the 8 inner classes and the class comment of TriggerHandlerBypassPermissionTest, and no other @author tag is added, removed, or changed. The docs/ site is not regenerated in this PR.

Each version comes from git history: the first release tag whose copy of the file holds the member, by name, parameter types, and enclosing class. A renamed member counts as new in the release that renamed it, so doShowDebug and doShowLimits get the release of the rename. LoopCounter is the exception: it has a tag for the release that added it and a tag for the rename. getHandlerName() gets the release in which it became protected.

The Kevin OHara line and the David Schach line in the class comments of TriggerHandler and TriggerHandlerTest now have the same @since value, because both dates are before the first release.

Test plan

  • npm run prettier:verify passes.

  • node scripts/sync-sample-code.mjs --check passes.

  • A scan of all 5 classes finds no member without @since and no @since value that is not a release version.

  • Compared with main, the diff adds an @author line only to the 8 inner classes and to the class comment of TriggerHandlerBypassPermissionTest, and it removes none.

  • The Apex tests run in CI.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Claude AI and others added 3 commits November 12, 2026 15:51
Claude AI @claude
docs(apexdoc): add author and since tags to the version 2 members
3aaa907
Each member that is new in version 2 and had no `@author` and no `@since` tag now has both. The `@author` tag is written as the `@author` tag of its class, and the `@since` tag names the release that first included the member: 2.0.0 for 52 members and 2.1.0 for 18 members, in TriggerHandler, its 2 test classes, and the sample handler test.

Co-Authored-By: Claude <[email protected]>
Claude AI @claude
docs(apexdoc): add since tags to the version 1 members and use versio…
5d9857f
…ns for all since values

Add a `@since` tag with the first release version to each version 1 member that had none, and replace each date in an existing `@since` tag, in the member and class comments, with a release version. A tag with a change note gets the release of that change, and the note text stays the same.

Co-Authored-By: Claude <[email protected]>
Claude AI @claude
docs(apexdoc): add ApexDoc comments to the overrides of the test handler
58384a3
Add an ApexDoc comment with a `@since` tag to each of the 9 overrides in `TriggerHandlerTest.TestHandler`, which had no comment.

Co-Authored-By: Claude <[email protected]>
@codecov

codecov Bot commented Nov 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8f310c2) to head (9bc5ded).
⚠️ Report is 11 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #411   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          339       339           
=========================================
  Hits           339       339           
Flag Coverage Δ
Apex 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Claude AI and others added 3 commits November 12, 2026 16:19
Claude AI @claude
docs(apexdoc): remove the author tags added to the version 2 members
0c76760
The version 2 members keep their `@since` tags but get no `@author` tag of their own. The `@author` tags that the members had before this change stay.

Co-Authored-By: Claude <[email protected]>
Claude AI @claude
docs(apexdoc): add the author tag to the inner classes
7f5d2a2
Each of the 8 inner classes in TriggerHandler and its 2 test classes now has the David Schach `@author` tag of the class comments. Their `@since` values already match the first release of each class, so they stay.

Co-Authored-By: Claude <[email protected]>
Claude AI @claude
docs(apexdoc): tag the bypass permission test and the rename of the l…
9bc5ded
…oop counter

The class comment of TriggerHandlerBypassPermissionTest gets the David Schach `@author` tag; its `@since 2.1.0` stays. The `LoopCounter` comment now has 2 `@since` tags: 1.0.0, when the class was added as `LoopCount`, and 1.5.1, when it was renamed to `LoopCounter`.

Co-Authored-By: Claude <[email protected]>
@dschach
dschach merged commit 3a7b82c into main Nov 12, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dschach
dschach deleted the docs/apexdoc-since-author branch November 12, 2026 05:28
This was referenced Nov 12, 2026
chore(main): release 2.2.2 #409
Merged
docs(site): regenerate the documentation site #412
Merged
dschach added a commit that referenced this pull request Nov 12, 2026
@dschach
docs(site): regenerate the documentation site (#412)
33bf6fd
The documentation site is generated again before the next release, so the live site shows the ApexDoc changes of #411.

## Changes

- `npm run prepareApexDox` updated the pages that come from the README, the changelog, and the sample README, and it drew the 2 Mermaid diagrams of the home page again.

- ApexDox generated `docs/` again. The class pages now show the release versions in the `@since` tags, for example `1.1.0 Add andFinally()` in place of a date, and the `@author` tags of the inner classes.

- `npm run prettier` formatted the generated pages.

## Behavior notes

The live site changes only with the next release, which deploys `docs/` from the release tag and adds the markdown copies, llms.txt, and the toolbar.

## Test plan

- `npm run prettier:verify` passes.

- `npm run site:preview -- --build-only` builds the deployed site from this `docs/`: it writes the 9 markdown pages and llms.txt.

- The `TriggerHandler` page lists release versions, not dates, under Since.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
dschach added a commit that referenced this pull request Nov 12, 2026
@dschach
chore(main): release 2.2.2 (#409)
4612c91
🤖 I have created a release *beep* *boop*
---


## [2.2.2](v2.2.1...v2.2.2) (2026-11-12)


### Documentation

* **apexdoc:** Add since tags with release versions to all members ([#411](#411)) ([3a7b82c](3a7b82c))
* **site:** Add markdown copies, llms.txt, and a markdown toolbar to the site ([#407](#407)) ([628f77c](628f77c))
* **site:** Regenerate the documentation site ([#412](#412)) ([33bf6fd](33bf6fd))


### Build System

* **node:** Update Node.js from v24.22.2 to v24.22.3 ([#405](#405)) ([61ba0a2](61ba0a2))
* **prettier:** Update devDependency prettier from 3.9.10 to 3.10.0 ([#406](#406)) ([0c615b2](0c615b2))
* **site:** Add a local preview of the deployed site ([#410](#410)) ([111173f](111173f))
* **turndown:** Update devDependency turndown from 7.2.4 to 7.2.5 ([#408](#408)) ([ec79953](ec79953))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dschach
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.