SShortSingh.
Back to feed

Why 'X skipped' in bulk actions is useless — and how to fix it

0
·1 views

A software developer building a bulk-action feature for a CRUD app found that reporting a single skip count gives operators no actionable information. When multiple rows are skipped, the reasons can vary widely — from permission issues to items already being in the target state — and each reason demands a different follow-up response. The fix involves tracking skip counts per reason rather than as a single total, allowing the system to display messages like '2 not permitted, 1 already stopped' instead of a vague '3 skipped'. A secondary issue discovered was a misleading success toast that reported jobs as stopping while they sat unclaimed in a queue no worker was monitoring. The author argues that a bulk operation returning zero changes should always surface as a warning, even if every skip was technically legitimate.

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 ·

BdThemes Plugin Supply Chain Attack Gave Hackers Silent Admin Access on WordPress Sites

Wordfence Threat Intelligence disclosed on August 8, 2026, that seven BdThemes WordPress plugins were compromised through a poisoned API response hosted on the vendor's cloud storage, not through WordPress.org plugin files. Attackers injected malicious JSON into BdThemes' static delivery infrastructure, exploiting an unpatched DOM XSS flaw in the Biggopti library that triggered automatically when a logged-in administrator opened the WordPress dashboard. Within milliseconds, the victim's browser executed external scripts that used the active admin session to silently create a rogue administrator account, upload a web shell, and install persistent malware in the MU-plugins directory. The attack also hooked WordPress database queries to conceal the unauthorized account from the admin interface, and enabled unauthenticated login via a hidden URL parameter. Wordfence detected active exploitation on August 7, 2026, and linked the command-and-control infrastructure to earlier supply chain attacks targeting the Advanced Responsive Video Embedder and OptinMonster plugins.

0
ProgrammingDEV Community ·

Researchers Demonstrate 'Ghostjacking' Attacks That Hijack AI Agents via Logs and Alerts

Security researchers at Tenet Security Threat Labs published a proof-of-concept on August 9, 2026, detailing a technique called Ghostjacking that manipulates AI agents by embedding malicious commands inside WAF logs, monitoring alerts, and bug reports. When an AI agent reads these poisoned inputs during routine investigation tasks, it interprets the attacker's text as legitimate instructions and executes them using its pre-granted tool permissions. Demonstrated attack scenarios involved tools including Claude Code, Cloudflare, Datadog, and Sentry, where agents were tricked into redirecting DNS traffic, stealing cloud credentials, and passing commands to other AI agents. The attacks are particularly difficult to detect because all resulting actions — such as DNS modifications or API calls — appear as normal, authorized operations from a legitimate agent identity. A sandbox bypass in Claude Desktop that could allow data exfiltration to arbitrary servers was separately reported and has since been patched.

0
ProgrammingDEV Community ·

Polish CHP Plant Sabotaged via Wind Farm Network in Coordinated Cyberattack

On December 29, 2025, attackers disrupted a Polish combined heat and power (CHP) plant in a multi-stage cyberattack that began by breaching a wind farm's FortiGate firewall. The attackers tunnelled through a Teltonika cellular router into a power distributor's private APN, then used a WAGO PLC with default credentials to pivot into the CHP plant's operational technology network. Once inside, they forced Siemens PLCs into STOP mode, halted the steam turbine and process-water treatment systems, and factory-reset or bricked multiple Moxa and other industrial devices. CERT Polska, which published its follow-up analysis around August 10, 2026, identified this as the first confirmed case of lateral movement across organisations via a shared private APN. No definitive attribution has been made public for the incident.

0
ProgrammingDEV Community ·

Dev log: queue misconfiguration, misleading UI states, and smarter enum design

A developer's short workday uncovered a significant bug where bulk lifecycle jobs were dispatched to a Redis queue while the database connection was expected, leaving jobs unclaimed while the UI falsely reported active deployments. The root cause was that a queue name appearing in config does not confirm anything is actively listening on that connection. To prevent silent failures, the UI message was updated to honestly reflect that a job was only enqueued, not executed. A provider health status enum was also refined to avoid collapsing distinct states — null was kept for unchecked providers rather than adding an Unknown case, and a Simulated status was introduced to distinguish fake-driver checks from genuine ones. Both fixes reflect a broader principle: systems should not report a verified state they have not actually confirmed.