REPOSITORY CODING · MEDIUM
Restore Current eligibility rules
Work in the real product frontend and the transactional backend. Accept a connector if it occurs anywhere in a station connector list and enforce individual power limits. Concurrent overlapping plans share the site power budget across every selected station. Split charging minutes at peak-rate boundaries, round the final cents upward, and show scheduled kWh from power times hours. An eligibility regression changes which plans are accepted. Repair the domain rule and preserve persistence, capacity checks and error handling. Run bash test/run.sh. The public checks drive Chromium against native HTTP and a real database; each scoring group includes regression safeguards.
Work through a real codebase.
Choose an environment, investigate the existing implementation and use the tests to check your change. Sign in to open a workspace; execution and Ono usage follow your plan’s allowances.
Task requirements and environments
MEAN · 55 minute session
- Accept a connector if it occurs anywhere in a station connector list and enforce individual power limits. Concurrent overlapping plans share the site power budget across every selected station. Split charging minutes at peak-rate boundaries, round the final cents upward, and show scheduled kWh from power times hours.
- Use the accessible product board to search and filter resources, select a plan, edit typed fields, preview the authoritative quote, review a confirmation dialog, persist it, reload it, cancel it and inspect workspace summaries. The preview uses real React or Angular components; JSON editing is not a product flow.
- All HTTP workspaces are scoped to the bearer demo tenant. PostgreSQL and MongoDB variants persist resources, bookings, receipts and audit events transactionally. Revision conflicts return 409; failed audit writes leave state and revision unchanged; repeated request IDs replay the original result without a second mutation.
- Validate bounded whole numbers, known unique resource IDs, explicit policy and detail types, and exclusive time intervals before mutation. Capacity is consumed only by confirmed overlapping plans with half-open windows. A cancellation releases capacity and increments revision exactly once. No challenge requires external APIs or network downloads.
MERN · 55 minute session
- Accept a connector if it occurs anywhere in a station connector list and enforce individual power limits. Concurrent overlapping plans share the site power budget across every selected station. Split charging minutes at peak-rate boundaries, round the final cents upward, and show scheduled kWh from power times hours.
- Use the accessible product board to search and filter resources, select a plan, edit typed fields, preview the authoritative quote, review a confirmation dialog, persist it, reload it, cancel it and inspect workspace summaries. The preview uses real React or Angular components; JSON editing is not a product flow.
- All HTTP workspaces are scoped to the bearer demo tenant. PostgreSQL and MongoDB variants persist resources, bookings, receipts and audit events transactionally. Revision conflicts return 409; failed audit writes leave state and revision unchanged; repeated request IDs replay the original result without a second mutation.