Skip to content

Phase 10 / Task C1: Correct Stale Public CSAPI Usage #194

Closed

Description

@Sam-Bolling

Phase 10 Task

Task ID: C1
Title: Correct Stale Public CSAPI Usage
Source: Approved Phase 10 Roadmap
Roadmap: P10-ROADMAP.md


  • Objective: Make every current public CSAPI example describe the real endpoint facade, method spelling, advanced factory signature, and supported package subpath.
  • Acceptance criteria advanced: P10-C1, P10-C2, P10-C3.
  • Complexity/risk: Medium; authored public documentation with no behavior change.
  • Locked decisions: Preferred usage is endpoint.csapi(collectionId); advanced factory is createCSAPIBuilder(collection, resourceUrls); method is getDatastreams(); no nested SensorML package export.
  • Expected work:
    • preserve current upstream README additions while correcting its CSAPI section;
    • correct stale examples and comments in the known endpoint and CSAPI files;
    • replace invalid @camptocamp/ogc-client/csapi/formats/sensorml public imports with symbols actually exported by /csapi;
    • distinguish the preferred facade from the advanced factory without redesigning either;
    • search all current public README/source examples for obsolete usage;
    • format, typecheck, and run affected tests.
  • Affected areas: README.md, src/ogc-api/endpoint.ts, src/ogc-api/csapi/index.ts, src/ogc-api/csapi/url_builder.ts, and relevant SensorML public documentation comments.
  • Explicit exclusions: Dynamic-import changes, new package exports, root bulk exports, parser behavior changes, historical docs, server testing.
  • Automated acceptance gate:
    • obsolete-use search over README.md and src/ returns zero matches;
    • positive-use search finds endpoint.csapi(...), getDatastreams(...), and the public /csapi import where appropriate;
    • npm run format:check, npm run typecheck, and affected existing tests exit 0;
    • reviewed diff contains documentation-only authored changes beyond prior formatter output.
  • Deliverable: One pushed public-documentation correction commit.
  • Closing evidence: Commit SHA, negative and positive search output, gates, files, deviations or none.

Acceptance Criteria

  • The task objective and expected work are complete under the locked decisions.
  • Every condition in the automated acceptance gate above passes and its command output is recorded.
  • The actual changed-file or evidence set stays within the listed affected areas.
  • Every explicit exclusion is respected.
  • Required workbench changes and evidence are committed and pushed to phase-10, or the task's stated evidence-only result is linked to an immutable commit.
  • The closing comment records the commit SHA or verified immutable SHA, changed files, exact gate results, and Deviation from locked decision: none. or the approved deviation.

Dependencies

Blocked by: #193 — Phase 10 Task B2
Blocks: #195 — Phase 10 Task D1

Definition of Done / Closing Workflow

This issue is not complete until all three steps occur in order:

  1. Edit this issue so every acceptance checkbox is [x].
  2. Commit and push/sync all required changes or immutable evidence.
  3. Post the required summary comment and close the issue as completed.

Do not close without the summary comment. New findings are recorded separately and are not absorbed into this task.

Operational Constraints

Before starting, review AI_OPERATIONAL_CONSTRAINTS.md and use its required task-entry acknowledgment.

Authority order for this issue:

  1. Adopted standards and specifications.
  2. Project governance.
  3. P10 Contribution Goal and Definition.
  4. P10 Implementation Guide.
  5. P10 Roadmap.
  6. This issue.
  7. Existing repository code and documentation.
  8. Conversational context.

Preserve minimal diffs, do not refactor adjacent code, do not introduce new features or dependencies, and stop on unresolved scope or architectural conflict.

Activity

  1. added
    documentation
    on Aug 27, 2026
  2. Sam-Bolling commented on Aug 27, 2026

    @Sam-Bolling
    Author

    Completed Phase 10 Task C1.

    • Commit: a29bd9c74f9d2e91cbdac632f69ab069c0f58373
    • Changed files: README.md, src/ogc-api/endpoint.ts, src/ogc-api/csapi/index.ts, src/ogc-api/csapi/url_builder.ts, src/ogc-api/csapi/formats/sensorml/index.ts, src/ogc-api/csapi/formats/sensorml/parser.ts
    • Obsolete-use search over README.md and src/: zero matches for createCSAPIBuilder(endpoint, getDataStreams, the unsupported nested SensorML package path, or await new OgcApiEndpoint.
    • Positive-use search: found the preferred endpoint.csapi(...) facade, getDatastreams(...), and supported @camptocamp/ogc-client/csapi imports in current public examples.
    • Documentation-only audit: passed for all five changed TypeScript files; no executable TypeScript changed. git diff --check passed.
    • Affected-file Prettier check: passed.
    • npm run typecheck: passed.
    • npm run lint: passed.
    • Affected tests: all 30 CSAPI suites passed; the endpoint CSAPI test block passed 11/11.
    • Clean Ubuntu QA: run 33123477384 passed format:check, typecheck, lint, browser tests, and Node tests.
    • Explicit exclusions respected: no dynamic-import redesign, new exports, root bulk exports, parser behavior changes, historical-doc edits, or server testing.
    • Deviation from locked decision: none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationlocked-decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions