Skip to content

Commit b3c3880

Browse files
committed
chore: add heads up for missing organization
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
1 parent 6039d06 commit b3c3880

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • .claude/skills/scaffold-snowflake-connector

.claude/skills/scaffold-snowflake-connector/SKILL.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ After all identity fields are confirmed, summarize how `buildMemberIdentities()`
342342
343343
### 3b. Organization Mapping
344344
345-
If Pre-Analysis determined there is no org data (no org-related columns found in any table), confirm: "I don't see any organization columns in the schema. Does this source have org/company data?" — if yes, proceed; if no, skip to 3c.
345+
If Pre-Analysis determined there is no org data (no org-related columns found in any table): before asking the user, first read existing transformers in `services/apps/snowflake_connectors/src/integrations/` to check whether any of them join an org table using a key that also exists in the user's tables. If a match is found, prompt the user:
346+
> "I don't see org columns in the tables you provided, but [EXISTING_PLATFORM] sources org data from `{ORG_TABLE}` via `{join_key}` — which also appears in your table. Did you mean to include this? (Recommended)"
347+
348+
If no existing pattern is joinable, ask: "I don't see any org columns. Does this source have org/company data?" — if yes, ask for the table; if no, skip to 3c.
346349
347350
If Pre-Analysis identified org columns:
348351

0 commit comments

Comments
 (0)