Can't pass an object to cf.split
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, javascript
- Domain
- cloud
Research direction
The issue points to lib/intrinsic.js around line 206; start there and reproduce the cf.split(',', cf.ref('SomeParameter')) example. Trace how the argument is converted, and consider the work complete when the Ref object is preserved rather than becoming '[object Object]'.
Written by the indexing model from the issue text.
Description
Because of the toString() here, if you pass a object (e.g. a "Ref") to cf.split(), it gets turned into [object Object].
> cf.split(',', cf.ref('SomeParameter'))
{ 'Fn::Split': [ ',', '[object Object]' ] }
cc @xrwang
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
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 mapbox/cloudfriend
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
mapbox/cloudfriend#152 ·
-
mapbox/cloudfriend#125 · 4 comments · 1 assignee ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mapbox/cloudfriend#123 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mapbox/cloudfriend#117 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
mapbox/cloudfriend#106 · 3 comments ·
All issues in mapbox/cloudfriend
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·