feat: store project id and type on --save-as
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 74/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- elasticsearch, typescript
Research direction
Start in src/cloud/credentials.ts at buildProjectContext and trace how --save-as and --use-context build context data. Check the create and reset-credentials command paths, then run the relevant tests for create and reset. Done means the saved context retains cloud, project_id, project_type, and region_id, and the stated observability get command works without --id.
Written by the indexing model from the issue text.
Description
--save-as writes elasticsearch and kibana blocks only (src/cloud/credentials.ts buildProjectContext). The Cloud block and the project id are dropped. Later reset-credentials, patch, or delete need --id from memory or from the create JSON.
On --save-as:
- Keep the active
cloudblock on the new context (or copy it from--use-context) - Store
project_id,project_type(search / observability / security), andregion_idon the context elastic status --jsonandelastic config context list --jsonshow those fields
reset-credentials --save-as <same-name> should resolve --id from the context when omitted.
Acceptance: create with --save-as demo, then elastic --use-context demo cloud serverless projects observability get works without --id. Context YAML has cloud plus project metadata. Tests cover create and reset.
- Dominant language
- TypeScript
- Stars
- 43
- Forks
- 24
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 59
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from elastic/cli
-
cloud enhancement
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
S: triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
fix(errors): EHOSTUNREACH from a happy-eyeballs connect is reported as a resolver error (STAMP-80) Open
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
snapshot-labs/stamp#666 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
GauravKarakoti/SecureFlow#1070 · 1 comment ·
-
feature:Languages/Translations good first issue ready Web
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
digitalfabrik/integreat-app#4394 ·