SShortSingh.
Back to feed

Trimming whitespace in comma-separated filter defaults fixes a search bug

0
·33 views

A developer traced a search-filter bug where a multi-select default such as 'Active, Pending' was split on commas but kept the leading space, so the second value never matched any rows. The stray space was invisible in the filter chips, which made the problem hard to report. A one-line trim in the parser fixed the filter and a regression test covers it. A later review found that a separate change-detection check had been relying on the same bug, so trimming the parser made untouched forms look modified. That caused the grid to load data on page open even when automatic search was disabled.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Shop chatbot answers only from the owner's own price list and hands off unknown questions to a human

A developer built a chat assistant for small businesses that answers strictly from a short, owner-editable set of facts such as prices, hours and stock. When the answer isn't in that data, the assistant says so and collects the visitor's email so a person can follow up, turning unanswered questions into leads. The product switches between AI backends without exposing provider errors or changing its voice to customers. It is live on website chat and Telegram, while Meta channels such as Instagram and WhatsApp are not yet shipped.

0
ProgrammingDEV Community ·

Node.js SMS alerts: keep old delivery collectors running when switching providers

The article argues that a media SaaS changing its SMS alerts API should keep the old receipt collector active so earlier compliance notices remain traceable. It distinguishes the date a provider stops sending from the date its delivery observations stop being collected. The author suggests polling-based adapters for basic notices where the evidence deadline allows, and callback-oriented options where prompt updates matter. It stresses that a delivery report does not prove a recipient read a notice. The piece promotes Infrai, citing SDK-free REST access, its discovery manifest, multi-language examples, and unified key and billing.

0
ProgrammingDEV Community ·

Netflix-Style Chaos Test on AWS: Terminating One Server Behind a Load Balancer

A developer deliberately terminated one of three instances behind an Application Load Balancer during a live test with steady traffic. The experiment used AWS Fault Injection Service with a stop-condition alarm as a safety guardrail. The system recovered within about 90 seconds with zero failed requests. The article presents this as a practical way to apply chaos engineering, which Netflix pioneered with its Chaos Monkey tool. It also provides a step-by-step guide, a latency-injection follow-up, and a game-day playbook, with total cost estimated under a dollar.

0
ProgrammingDEV Community ·

Is vibe coding always useful? A developer weighs AI-generated code against human work

A software developer reflects on a decade of building software and about three years of using AI tools to write code. They note that human coders bring instinct, intuition, and creative design that current AI models still struggle to match. The author argues that AI can speed up work but cannot plan ahead or enforce specific business logic without explicit guidance from the developer. Distinguishing 'vibe coding', where code is generated with minimal interaction, from AI-assisted development, the writer cautions against leaving whole projects to AI and stresses the developer's role as the decision-maker.