Commit Graph

37 Commits

Author SHA1 Message Date
Scott Idem
687472f4e3 feat(user): V3 action endpoints + auth bug fixes (19/19 + 22/22 tests)
New router: /v3/action/user/ (api_v3_actions_user.py)
  - POST /authenticate  — credentials in body (not query params; security fix)
  - POST /verify_password
  - POST /{user_id}/change_password  — optional current-password verification
  - GET  /{user_id}/new_auth_key
  - GET  /{user_id}/email_auth_key_url
  Registered in registry.py under /v3/action/user with V3 AccountContext auth.

Bug fixes (from audit in previous session):
  - user.py: fix broken @router.get decorator (authenticate was unreachable)
  - user.py + user_methods.py: fix AttributeError id_random → id (Vision ID)
  - user_models.py: add fields_to_exclude_from_db to User_New_Base; narrow
    collision prevention to self-reference IDs only
  - user_models.py: pre-inject hashed password in root_validator(pre=True) so
    exclude_unset=True in CRUD POST handler includes it (was writing NULL)
  - api_crud_v3.py: move sanitize_payload + account_id injection to after
    model validation (fixes FK integer collision with Vision ID constraints)

Docs: GUIDE__AE_API_V3_for_Frontend.md — new Section 7 with full migration
  table (legacy → V3), request/response docs for all 5 action endpoints,
  and V3 CRUD search equivalents for the 3 lookup routes.

Tests: tests/e2e/test_e2e_v3_user_action_routes.py — 19 tests, 19/19 pass.
  Legacy tests/e2e/test_e2e_v3_user_auth_routes.py — 22/22 still pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 21:54:09 -04:00
Scott Idem
91434968f7 docs+site_domain: Add guidance for restoring access_key validation in site_domain lookup; stage recent user/auth changes and frontend guide updates 2026-03-25 19:33:53 -04:00
Scott Idem
5af3f44a53 Refactor Contact and User models to use Vision ID string pattern
Updated Contact_Base and User_Base (including New/Out variants) to use standardized string IDs mapped from random IDs via root_validator. Removed legacy integer ID fields and lookup validators to support V3 Vision standards. This completes the refactor chain for Person and Post dependencies.
2026-01-27 12:12:51 -05:00
Scott Idem
802c75bad9 V3: Standardize Primary AE Objects and Synchronize Search Whitelists.
- Synchronized searchable_fields (V3 whitelists) across all Primary and Active AE objects (Identity, People, Events, Journals, Posts, Archives, Business).
- Standardized Pydantic models for core objects to include the 10 common fields (id, id_random, enable, hide, priority, sort, group, notes, created_on, updated_on).
- Fixed field aliases and uncommented valid database columns in User_Base and Organization_Base.
- Pruned non-existent fields from searchable lists in legacy or config-specific definitions (account_cfg, user_role, log_client_viewing).
- Added system discovery and validation tools:
    - ae_object_info.py: AE object status and metadata browser.
    - export_all_interfaces.py: E2E TypeScript interface generator.
    - Verification scripts for searchable field consistency.
- Updated Jan 8 milestone progress and platform roadmap in GEMINI.md.
2026-01-08 12:24:34 -05:00
Scott Idem
45f6303219 feat(v3): robust search wildcards, smart status filtering, and fixed ID population 2026-01-06 15:54:31 -05:00
Scott Idem
f91b50a9e8 More again. Moving ID random generation to the SQL db instead. General clean up. 2022-06-30 15:53:11 -04:00
Scott Idem
fdcfe75325 Sort of bug fixes and improvements for user model and other. 2022-05-24 16:49:10 -04:00
Scott Idem
8d5b4c7fc0 Work on orders and order lines. Removing user_id related from order. Also general clean up. 2022-03-16 16:52:03 -04:00
Scott Idem
fe3cea131a Working on Cvent API for IDAA members. 2022-02-01 15:15:49 -05:00
Scott Idem
afe44bac89 Bug fixes or some issues around user auth, verification, and password change 2022-01-20 18:07:27 -05:00
Scott Idem
597c765673 Code clean up. Bug fixes for person, user, contact, and address methods 2022-01-06 16:56:38 -05:00
Scott Idem
0cad4e68eb Clean up 2022-01-03 18:29:11 -05:00
Scott Idem
7fe0c4ae27 Including account_name in user model 2021-12-30 18:58:56 -05:00
Scott Idem
455cc36a69 Working on user login, verification, and password change. 2021-10-06 17:34:29 -04:00
Scott Idem
d6892c168c Working on user login with membership for IDAA 2021-10-04 21:05:42 -04:00
Scott Idem
c93792634a Working on event person, registration, badge, session, presentation, and presenter create and update. _v3 things 2021-08-25 16:25:46 -04:00
Scott Idem
824bdd29a2 Work on event, event_session, event_presentation, event_presenter, user, and person routes, methods, and models 2021-08-21 16:04:17 -04:00
Scott Idem
09891b5d83 Minor changes 2021-08-19 16:28:31 -04:00
Scott Idem
d933395a9f A lot of code clean up! Also adding in Response everywhere... 2021-08-10 18:09:34 -04:00
Scott Idem
475239f6e9 Working on importing IDAA data 2021-07-30 18:13:31 -04:00
Scott Idem
9d1b520718 A lot of changes related to person and membership and event 2021-07-12 17:47:16 -04:00
Scott Idem
49805f48c9 A lot of changes related to person and membership 2021-07-09 17:34:02 -04:00
Scott Idem
ca43cc4dce Working on membership and users 2021-06-25 11:15:58 -04:00
Scott Idem
d85ab35812 Working on membership stuff 2021-06-24 17:50:11 -04:00
Scott Idem
c1d23d15f4 Working on all module routes, methods, and models 2021-06-22 18:00:34 -04:00
Scott Idem
fe232b8cba Clean up of code... 2021-06-11 18:42:28 -04:00
Scott Idem
585692bb1d User related clean up 2021-06-11 15:31:18 -04:00
Scott Idem
4e6fedcffd Work on better way to update objects. A lot of work! Also a lot of clean up. 2021-06-10 17:42:31 -04:00
Scott Idem
717db418f9 Work on better way to update objects. A lot of work! 2021-06-10 17:03:12 -04:00
Scott Idem
b8da9d99eb Work on better way to update objects. 2021-06-10 15:23:57 -04:00
Scott Idem
979e0c2174 A lot of work on event related modules 2021-06-04 17:28:52 -04:00
Scott Idem
2788546cc8 A lot of work on event related modules 2021-06-04 17:10:09 -04:00
Scott Idem
b1effc128a Working on event related models and methods. Also, a lot of general clean up of everything. 2021-05-28 16:03:17 -04:00
Scott Idem
443d2bab77 A lot of general clean up of everything. 2021-05-28 03:52:31 -04:00
Scott Idem
2167c7e897 General clean up of everything. 2021-05-28 03:23:52 -04:00
Scott Idem
09c7b48223 General clean up of models and methods. 2021-05-28 01:40:18 -04:00
Scott Idem
e46032a00b General clean up of models and methods. 2021-05-28 01:30:56 -04:00