apsislabs / apsislabs/phi_attrs

Add flag for excluding Rails default attributes from PHI wrapping

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
31
Forks
3
PR merge metrics
No merged PRs in 30d

Description

We should include a simple flag when calling `phi_model` that will exclude `id`, `created_at`, and `updated_at` from PHI wrapping. Instead of hard-coding ID, we should grab `class.primary_key` to know which one is the primary key.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `phi_model` entry point and trace how wrapped attributes are selected. Add an opt-in flag that excludes `id`, `created_at`, and `updated_at`, using `class.primary_key` rather than a hard-coded ID; done means these defaults are omitted when the flag is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.