Public alerts API
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- documentation
Research direction
Find the existing documentation entry for the alerts_namespace API and compare its documented methods with the requested return values. Add the get(key) method and document the true/false outcomes for add, set, unset, and clear. Done means the public API reference matches all behaviors listed in the issue.
Written by the indexing model from the issue text.
Description
Update the following methods:
alerts_namespace:add(alert)- now returnstrue.alerts_namespace:set(key, alert)- now returnstrueif the alert
was set,falseif an alert with the same key and message already
exists.alerts_namespace:unset(key)- now returnstrueif the alert was
discarded,falseif it didn't exist.alerts_namespace:clear()- now returnstrueif any alerts were
discarded,falseif the namespace was already empty.
New method:
alerts_namespace:get(key)- returns the alert with the given key,
ornilif it doesn't exist.
Requested by @Godrik0 in https://github.com/tarantool/tarantool/commit/5879f121b2c6babaefefed81d721b83e904e3308.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
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 tarantool/doc
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Opencategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficulty 1/5 Under an hour Newbie friendliness 84/100