Latest Updates

Documenting code, one commit at a time.

Empowering Superadmins: A Secure SQL Query Executor Tool for Reimpact/platform

Introduction

The Reimpact/platform project recently rolled out a powerful new feature for its superadministrators: a dedicated SQL Query Executor tool. While direct database access can be a double-edged sword, this tool addresses the critical need for superadmins to perform ad-hoc read-only database inspections and troubleshooting, all within a secure and controlled environment.

Read more

Streamlining PR Workflows with GitHub Actions Auto-Approval and Merge

Project Context

In the Breniapp/brenia project, we continuously look for ways to optimize our development workflows. One common challenge in many projects is the manual overhead associated with reviewing and merging pull requests, even those from trusted or automated sources. To address this for specific use cases, we implemented an automated CI/CD solution.

The Challenge: Manual PR

Read more

Mastering E2E Testing: Architecting a Secure Playwright Suite with Faked AI Services and CI/CD Integration

Introduction

For Breniapp, our user onboarding process is a critical first impression, featuring complex multi-step flows and integrations with AI services. Ensuring its robustness, especially after continuous development, demands comprehensive end-to-end (E2E) testing. Historically, our CI workflows lacked E2E coverage for onboarding and only ran basic checks on select PRs.

Read more

Automating Social Sharing: Integrating LinkedIn Publishing in Laravel

The 'landing' project recently received an upgrade aimed at streamlining our content distribution. The goal was to automatically publish newly released blog posts to LinkedIn, enhancing our reach and ensuring our audience on professional networks stays informed. This update focuses on an event-driven approach using Laravel's powerful ecosystem.

The Challenge: Seamless LinkedIn Integration

Read more
PHP PostgreSQL

Optimizing PostgreSQL Queries: Avoiding DISTINCT on JSON Columns

Introduction

The landing project encountered a performance bottleneck related to how it was handling JSON data within PostgreSQL. Specifically, the issue arose when using SELECT DISTINCT queries on columns containing JSON data.

The Challenge

PostgreSQL's inability to directly compare JSON columns for equality posed a problem. The Filament admin panel, when preloading the attach-user

Read more

Refactoring PostgreSQL Dashboard Functions in Reimpact/platform

The Reimpact/platform project is focused on [description]. Recent work has concentrated on improving the reliability and accuracy of PostgreSQL dashboard functions. A key area of focus was addressing data type mismatches and sequence issues that could lead to errors and inconsistencies in the displayed data.

The Problem

One specific issue involved the product_ranking function, where a

Read more

Robust Data Handling in PostgreSQL Dashboard Functions

Introduction

The Reimpact platform leverages PostgreSQL for its data storage needs. Ensuring data integrity and accurate comparisons within dashboard functions is crucial for reliable reporting and analysis. Recent work focuses on addressing data type inconsistencies that can lead to unexpected errors and inaccurate results.

The Problem

In the PostgreSQL database, the `products.

Read more

Explicit Type Casting in PostgreSQL Functions: A Must-Do

Ever faced a baffling error message that seemed to defy logic? In the Reimpact platform, we encountered a particularly frustrating issue in our PostgreSQL dashboard functions. The symptom? A cryptic 42883 error cropping up across all Packaging dashboard widgets.

The culprit turned out to be PostgreSQL's strictness regarding implicit type casting. Specifically, it doesn't automatically convert

Read more

Enhancing Data Visualization in Filament with PostgreSQL Functions

Introduction

This post explores how the Reimpact/platform project enhanced its Filament-based dashboard by leveraging PostgreSQL functions to improve data visualization. The focus was on creating a more insightful and efficient packaging dashboard.

From MySQL to PostgreSQL: A Performance Shift

The initial implementation relied on MySQL stored procedures. To optimize performance and

Read more