Collections: error in put_all
Open
Nobody has claimed this yet.
bug
- Dominant language
- Elixir
- Stars
- 296
- Forks
- 86
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 50
Description
Sentry Issue: LIGHTNING-P1
FunctionClauseError: no function clause matching in anonymous fn/2 in Lightning.Collections.put_all/2
File "lib/lightning/collections.ex", line 167, in anonymous fn/2 in Lightning.Collections.put_all/2
File "lib/enum.ex", line 4798, in Enum.with_index_list/3
File "lib/lightning/collections.ex", line 167, in Lightning.Collections.put_all/2
File "lib/lightning_web/controllers/collections_controller.ex", line 51, in LightningWeb.CollectionsController.put_all/2
File "lib/lightning_web/controllers/collections_controller.ex", line 1, in LightningWeb.CollectionsController.action/2
...
(3 additional frame(s) were not displayed)
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by reading lib/lightning/collections.ex at line 167, where Lightning.Collections.put_all/2 raises, then trace its call from lib/lightning_web/controllers/collections_controller.ex line 51. Use the linked Sentry report to identify the input that triggers the FunctionClauseError and confirm that put_all/2 no longer raises for that case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100