Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
eebe12b
docs(navigator): design + plan for #3112 search count-guard fix
jung-thomas Nov 21, 2026
a31d02b
fix(test): deploy full db model in kg-featured-topics-job to stop cro…
jung-thomas Nov 21, 2026
5c556ed
Merge pull request #3158 from sap-tutorials/docs-3112-navigator-searc…
jung-thomas Nov 21, 2026
5f63017
Merge pull request #3160 from sap-tutorials/worktree-fix-unit-test-po…
jung-thomas Nov 21, 2026
6ef07e8
fix(#977): qualify DeveloperEnvironmentTabs via-name in anonymize cas…
jung-thomas Nov 21, 2026
14e9053
Merge pull request #3164 from sap-tutorials/worktree-fix-unit-test-po…
jung-thomas Nov 21, 2026
795c1c6
docs(research): private tutorials scoping (#3099)
jung-thomas Nov 21, 2026
4b1c222
Merge pull request #3165 from sap-tutorials/worktree-private-tutorial…
jung-thomas Nov 21, 2026
d6f6cfe
docs(design): Private Tutorials design (#3099)
jung-thomas Nov 21, 2026
09255ab
docs(plan): Private Tutorials implementation plan (#3099)
jung-thomas Nov 21, 2026
107b4eb
fix(docs): register private-tutorials-research in sidebar
jung-thomas Nov 21, 2026
427ff30
feat(db): add Tutorials.visibility enum (#3099)
jung-thomas Nov 21, 2026
6fc6086
feat(nav): hide non-listed tutorials from navigator (#3099)
jung-thomas Nov 21, 2026
377d339
feat(search): exclude non-listed tutorials from search index (#3099)
jung-thomas Nov 21, 2026
45b6ba8
feat(catalog): expose visibility on build-catalog feed (#3099)
jung-thomas Nov 21, 2026
3407a9a
feat(auth): add Tutorial.PreRelease scope + gated approuter route (#3…
jung-thomas Nov 21, 2026
37fcbcd
feat(serve): hard-gate ROLE_GATED tutorials, fail-closed cache (#3099)
jung-thomas Nov 21, 2026
400fc88
feat(sitemap): exclude non-listed tutorials via private front-matter …
jung-thomas Nov 21, 2026
90fdbfc
feat(admin): edit tutorial visibility; smoke-gate pre-release (#3099)
jung-thomas Nov 21, 2026
b404f97
fix(private): exclude non-listed tutorials from sitemap.md + llms-ful…
jung-thomas Nov 21, 2026
3f482ac
fix(ci): regen CDS staging artifacts + allowlist pre-release route as…
jung-thomas Nov 21, 2026
48acfc5
Merge pull request #3166 from sap-tutorials/worktree-fix-docs-sidebar…
jung-thomas Nov 21, 2026
e44fe71
fix(ci): QA schema visibility column + sync .deploy xs-security copy …
jung-thomas Nov 21, 2026
4cb5932
Merge pull request #3167 from sap-tutorials/worktree-private-tutorial…
jung-thomas Nov 21, 2026
e3501a3
fix(smoke): accept XSUAA 200 login-interstitial as gated for pre-rele…
jung-thomas Nov 21, 2026
d119ad2
Merge pull request #3169 from sap-tutorials/fix-prerelease-smoke-asse…
jung-thomas Nov 21, 2026
af70f72
fix(search): exclude ROLE_GATED from public semantic_search (#3168, #…
jung-thomas Nov 21, 2026
7388b2d
feat(prerelease): live gated nav feed for ROLE_GATED tutorials (#3168)
jung-thomas Nov 22, 2026
e680a54
feat(prerelease): QA-style prerelease build channel (#3168)
jung-thomas Nov 22, 2026
1d1826c
feat(prerelease): navigator template prerelease channel branch (#3168)
jung-thomas Nov 22, 2026
4d623a1
test(prerelease): verify-build prerelease marker + ROLE_GATED filter …
jung-thomas Nov 22, 2026
ab0f8da
feat(prerelease): scope-gated navigator approuter routes (#3168)
jung-thomas Nov 22, 2026
3a8a255
feat(prerelease): deploy wiring (MTA static shell + build) and e2e sm…
jung-thomas Nov 22, 2026
5f576e3
fix(prerelease): gate /content/tutorials-prerelease behind scope + fa…
jung-thomas Nov 22, 2026
283eda9
docs(deploy): update stale 'two fetches' comments to reflect three fe…
jung-thomas Nov 22, 2026
80f44d0
docs(prerelease): design + implementation plan for #3168
jung-thomas Nov 22, 2026
4428656
fix(ci): allowlist srv-only /content/tutorials-prerelease/_nav in rou…
jung-thomas Nov 22, 2026
0766b84
Merge pull request #3170 from sap-tutorials/worktree-issue-3168-prere…
jung-thomas Nov 22, 2026
986df38
fix(scheduler): auto-recover dead-lettered outbox rows (#3171)
jung-thomas Nov 22, 2026
7abe1c0
Merge pull request #3172 from sap-tutorials/worktree-harden-3171-dead…
jung-thomas Nov 22, 2026
8bd6ae6
fix(prerelease): allow empty prerelease browse grid in verify-build (…
jung-thomas Nov 22, 2026
93572a6
Merge pull request #3173 from sap-tutorials/worktree-issue-3168-empty…
jung-thomas Nov 22, 2026
62fc38e
release 1.45.0 prep: version bump for Private/Pre-release Tutorials
jung-thomas Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .deploy/mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ID: tutorials-ims
# Bump this on each release you deploy — it's the version shown by `cf mtas`
# and in the mtar filename (tutorials-ims_<version>.mtar). Deploy is manual:
# `cd .deploy && mbt build && cf deploy mta_archives/tutorials-ims_<version>.mtar -e ../deploy/<env>.mtaext -f`.
version: 1.44.4
version: 1.45.0

# Top-level parameters (overridable per-env via deploy/<env>.mtaext).
parameters:
Expand Down Expand Up @@ -259,7 +259,7 @@ modules:
# Wipe each static dir BEFORE cp'ing fresh content. Hugo public, qa, admin-ui,
# analytics-ui, scanner-ui all need this; everything not under static/ here
# (e.g. node_modules, package.json) is preserved.
- rm -rf static/admin-ui static/analytics-ui static/scanner-ui static/explore-ui static/channel-atlas-ui static/data-inspector-ui static/qa
- rm -rf static/admin-ui static/analytics-ui static/scanner-ui static/explore-ui static/channel-atlas-ui static/data-inspector-ui static/qa static/prerelease
# CAP-sourced Hugo sections (concepts, developer-advocates, browse) are
# generated at build time from /build/* endpoints. Because `cp -r` is
# union (see comment above), a build against a backend with FEWER rows
Expand All @@ -274,6 +274,9 @@ modules:
- mkdir -p static/qa
- cp -r ../hugo/public-qa/. static/qa/
- rm -rf static/qa/tutorials
- mkdir -p static/prerelease
- cp -r ../hugo/public-prerelease/. static/prerelease/
- rm -rf static/prerelease/tutorials
- npm --prefix ../app/admin-shell install
- npm --prefix ../app/admin-shell run build
- mkdir -p static/admin-ui
Expand Down
20 changes: 20 additions & 0 deletions .deploy/xs-security.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"name": "$XSAPPNAME.Tutorial.Author",
"description": "QA channel author preview (unpublished tutorials at /tutorials-qa/*)"
},
{
"name": "$XSAPPNAME.Tutorial.PreRelease",
"description": "Pre-release channel access (unreleased-feature tutorials at /tutorials-prerelease/*)"
},
{
"name": "$XSAPPNAME.KnowledgeGraph.Admin",
"description": "Knowledge graph admin: merge/veto concepts, run raw SPARQL"
Expand Down Expand Up @@ -125,6 +129,14 @@
"$XSAPPNAME.Everyone"
]
},
{
"name": "TutorialPreRelease",
"description": "Pre-release channel access (preview unreleased-feature tutorials)",
"scope-references": [
"$XSAPPNAME.Tutorial.PreRelease",
"$XSAPPNAME.Everyone"
]
},
{
"name": "Everyone",
"description": "Baseline",
Expand Down Expand Up @@ -195,6 +207,14 @@
"$XSAPPNAME.Everyone"
]
},
{
"name": "Tutorials PreRelease",
"description": "Pre-release channel access (gates /tutorials-prerelease/*; unreleased-feature tutorials)",
"role-template-references": [
"$XSAPPNAME.TutorialPreRelease",
"$XSAPPNAME.Everyone"
]
},
{
"name": "Tutorials Scanner",
"description": "Mobile scanner UI access for event staff (gates /scanner-ui/*, /scanner-vue/*, /scanner/*)",
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
# Cache .tutorial-cache/ across runs so fetch-tutorials does not re-pull
# ~1400 tutorials from GitHub on every CI run. Without this, mbt's 10-min
# per-command timeout fires during the QA-channel fetch (the second of
# two fetches in the build sequence). Mirrors rebuild-content.yml's
# three fetches in the build sequence). Mirrors rebuild-content.yml's
# caching pattern.
# Cache key is keyed to the fetcher implementation (scripts/fetch-tutorials.ts
# + scripts/parsers/), NOT to deploy.yml. Workflow file edits don't change
Expand Down Expand Up @@ -180,13 +180,13 @@ jobs:

# Prefetch tutorials OUTSIDE the mbt before-all phase. mbt enforces a
# 10-minute timeout for the entire before-all sequence; cold-cache CI
# runs do TWO ~6-min full fetches (prod + QA) which blow past 10 min.
# runs do THREE ~6-min full fetches (prod + QA + prerelease) which blow past 10 min.
# Doing the fetches as separate workflow steps removes them from mbt's
# cap, AND populates the actions/cache@v4 directories for any future
# mbt invocation in the same job (mbt's own fetch step then hits a
# warm cache and finishes in seconds).
#
# Both fetches run sequentially since they share the GitHub API rate
# All fetches run sequentially since they share the GitHub API rate
# limit budget; in parallel they'd compete for tokens. Each is gated
# by `if: failure()` is NOT used — we WANT a hard failure if discovery
# breaks (otherwise mbt would re-fetch anyway and surface the same
Expand All @@ -209,6 +209,13 @@ jobs:
CAP_BASE_URL: ${{ steps.cap-url.outputs.url }}
SNIPPETS_ENABLED_REPOS: meta-tutorials

- name: Prefetch prerelease tutorials (warms .tutorial-cache-prerelease)
run: npm run fetch-tutorials -- --target hugo --channel prerelease
env:
GITHUB_TOKEN: ${{ secrets.TUTORIALS_GITHUB_TOKEN || github.token }}
CAP_BASE_URL: ${{ steps.cap-url.outputs.url }}
SNIPPETS_ENABLED_REPOS: meta-tutorials

# [#797] Hugo safeHTML XSS-guard. Sweeps hugo/layouts/**/*.{html,xml,xsl}
# for unmarked `| safeHTML` / `| safeHTMLAttr` / `printf "<...%s"` usages
# and fails CI if any occurrence lacks a `<!-- security-reviewed: <reason> -->`
Expand Down
4 changes: 4 additions & 0 deletions app/admin-annotations.cds
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,9 @@ annotate AdminService.Tutorials with {
]
};
ownerEmail @Common.Label: 'Owner Email' @Common.FieldControl: #ReadOnly;
// #3099 — tutorial visibility (LISTED / UNLISTED / ROLE_GATED). Enum dropdown
// from @Common.ValueListWithFixedValues; writable by admins to gate access.
visibility @Common.Label: 'Visibility' @Common.ValueListWithFixedValues;
};

annotate AdminService.TutorialMeta with {
Expand Down Expand Up @@ -704,6 +707,7 @@ annotate AdminService.Tutorials with @UI: {
]},
FieldGroup#Lifecycle: { Data: [
{ Value: status },
{ Value: visibility },
{ Value: deletionReason },
{ Value: redirectTo_ID, Label: 'Redirect To' },
{ Value: redirectUrl, Label: 'Redirect URL (external)' }
Expand Down
35 changes: 35 additions & 0 deletions approuter/xs-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,13 @@
"destination": "srv-api",
"authenticationType": "xsuaa"
},
{
"source": "^/content/tutorials-prerelease/(.*)$",
"target": "/content/tutorials-prerelease/$1",
"destination": "srv-api",
"authenticationType": "xsuaa",
"scope": "$XSAPPNAME.Tutorial.PreRelease"
},
{
"source": "^/content/(.*)$",
"target": "/content/$1",
Expand Down Expand Up @@ -672,6 +679,34 @@
"authenticationType": "xsuaa",
"scope": "$XSAPPNAME.Tutorial.Author"
},
{
"source": "^/tutorials-prerelease/_nav\\.json$",
"target": "/content/tutorials-prerelease/_nav",
"destination": "srv-api",
"authenticationType": "xsuaa",
"scope": "$XSAPPNAME.Tutorial.PreRelease"
},
{
"source": "^/tutorials-prerelease/?$",
"target": "/prerelease/index.html",
"localDir": "static",
"authenticationType": "xsuaa",
"scope": "$XSAPPNAME.Tutorial.PreRelease"
},
{
"source": "^/tutorials-prerelease/((?:css|js|img|fonts|vendor)/.*)$",
"target": "/$1",
"localDir": "static",
"authenticationType": "xsuaa",
"scope": "$XSAPPNAME.Tutorial.PreRelease"
},
{
"source": "^/tutorials-prerelease/(.*)$",
"target": "/content/tutorials-prerelease/$1",
"destination": "srv-api",
"authenticationType": "xsuaa",
"scope": "$XSAPPNAME.Tutorial.PreRelease"
},
{
"source": "^/tutorials/_nav\\.json$",
"target": "/content/nav",
Expand Down
8 changes: 6 additions & 2 deletions db-qa/schema.cds
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,18 @@ entity BranchSpecs : shared.BranchSpecsAspect {}
entity RepoCatalog : shared.RepoCatalogAspect {}

// Minimal Tutorials entity required by the content-store serve handler
// for status-aware lookup (soft-delete / redirect). QA only needs status
// and redirectTo so we don't replicate the full prod schema here.
// for status-aware lookup (soft-delete / redirect) and the visibility gate.
// QA only needs status, redirectTo, and visibility so we don't replicate the
// full prod schema here. `visibility` must exist because the shared serve
// handler's status SELECT reads it unconditionally (#3099); QA has no
// pre-release channel, so QA tutorials are always LISTED (the default).
@cds.autoexpose: false
entity Tutorials : managed {
key ID : UUID;
slug : String(255);
title : String(500);
status : String(20) default 'ACTIVE';
visibility : String(50) default 'LISTED';
redirectTo : Association to Tutorials;
redirectUrl : String(1000);
}
Expand Down
8 changes: 8 additions & 0 deletions db/last-dev/csn.json
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,14 @@
"length": 36,
"@odata.foreignKey4": "author",
"@cds.persistence.name": "AUTHOR_ID"
},
"visibility": {
"type": "cds.String",
"length": 50,
"default": {
"val": "LISTED"
},
"@cds.persistence.name": "VISIBILITY"
}
},
"$tableConstraints": {
Expand Down
2 changes: 2 additions & 0 deletions db/schema.cds
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type TaskType : String(20) enum { TUTORIAL; GROUP; CHECKPOINT; PUZZLE; P
type EventType : String(20) enum { DEVTOBERFEST; TECHED; CODEJAM; CHALLENGE; OTHER; }
type AttendanceMode : String(20) enum { VIRTUAL; IN_PERSON; HYBRID; } // #2370

type Visibility : String(50) enum { LISTED; UNLISTED; ROLE_GATED; }
type LinkHealthStatus : String(8) enum { UNKNOWN; OK; SLOW; BROKEN; };

// Per-row URL reachability, written by the url-health-check job (#2787).
Expand Down Expand Up @@ -70,6 +71,7 @@ entity Tutorials : TaskBase, LinkHealth {
categories : Composition of many TutorialCategories on categories.tutorial = $self;
variables : Composition of many TutorialVariables on variables.tutorial = $self;
author : Association to Users;
visibility : Visibility default 'LISTED';
}

@assert.unique.slug: [slug]
Expand Down
7 changes: 6 additions & 1 deletion db/src/com.sap.developers.ims.Tutorials.hdbmigrationtable
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
== version=7
== version=8
COLUMN TABLE com_sap_developers_ims_Tutorials (
ID NVARCHAR(36) NOT NULL,
createdAt TIMESTAMP,
Expand All @@ -25,9 +25,14 @@ COLUMN TABLE com_sap_developers_ims_Tutorials (
redirectTo_ID NVARCHAR(36),
redirectUrl NVARCHAR(1000),
author_ID NVARCHAR(36),
visibility NVARCHAR(50) DEFAULT 'LISTED',
PRIMARY KEY(ID)
)

== migration=8
-- generated by cds-compiler version 7.2.1
ALTER TABLE com_sap_developers_ims_Tutorials ADD (visibility NVARCHAR(50) DEFAULT 'LISTED');

== migration=7
-- generated by cds-compiler version 7.0.1
ALTER TABLE com_sap_developers_ims_Tutorials ADD (optionalSteps NVARCHAR(1000));
Expand Down
6 changes: 4 additions & 2 deletions db/views.cds
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ view NavigatorCatalog as
item.taskType
}
where item.taskType = 'TUTORIAL' and tut.slug is not null
and mission.published = true;
and mission.published = true
and (tut.visibility = 'LISTED' or tut.visibility is null);

view SearchableItems as
SELECT from ims.Tutorials as t
Expand All @@ -109,7 +110,8 @@ view SearchableItems as
inner join ims.Tags as tg on tg.ID = tt.tag.ID
where tt.tutorial.ID = t.ID
) as tagBag : String(5000)
} where t.status is null or t.status = 'ACTIVE'
} where (t.status is null or t.status = 'ACTIVE')
and (t.visibility = 'LISTED' or t.visibility is null)
UNION ALL
SELECT from ims.Missions as m {
m.ID, m.legacyId, m.title, m.description, m.slug,
Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ export default defineConfig({
{ text: 'Iframe allowlist', link: '/developers/reference/iframe-allowlist' },
{ text: 'MCP server tool reference', link: '/developers/reference/mcp-server' },
{ text: 'On-read fetch caching', link: '/developers/reference/on-read-fetch-caching' },
{ text: 'Private tutorials research', link: '/developers/reference/private-tutorials-research' },
{ text: 'Publish performance spike (#2802)', link: '/developers/reference/publish-performance-spike-2802' },
{ text: 'Sage extension migration', link: '/developers/reference/sage-extension-migration' },
{ text: 'TechEd sessions', link: '/developers/reference/teched' },
Expand Down
Loading
Loading