Display manually created organizations and members #1383
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed ✍️
What
🤖 Generated by Copilot at 3ca013a
This pull request adds a new
manuallyCreated
column to theorganizations
,members
, andorganizationCaches
tables in the database, and updates the corresponding models, repositories, services, tests, and frontend components to handle this column. ThemanuallyCreated
column indicates whether an organization or a member was created by a user or by the system, and helps to filter out irrelevant data for the search sync process. The pull request also includes migration scripts to add and drop the column, and a console log for debugging.
🤖 Generated by Copilot at 3ca013a
Why
How
🤖 Generated by Copilot at 3ca013a
manuallyCreated
column toorganizations
,members
, andorganizationCaches
tables in the public schema to track whether an entity was created manually by a user or automatically by the system (link,link)manuallyCreated
attribute toOrganization
,Member
, andOrganizationCache
models in the backend to map the table columns to the TypeScript objects (link,link,link)manuallyCreated
column to the list of columns to select in theOrganizationRepository
,MemberRepository
, andOrganizationCacheRepository
classes in the backend to query the database and return the entity objects (link,link,link)filter
object in theOrganizationRepository
class in the backend to include themanuallyCreated
column in the condition to filter the organizations based on whether they are manually created or have activity count greater than zero (link)OrganizationRepository
class in the backend to print the parsed organization query for debugging purposes (link)manuallyCreated
property to thedata
object in theOrganizationFormPage
andMemberFormPage
components in the frontend to set themanuallyCreated
flag to true when creating a new entity from the form (link,link)manuallyCreated
attribute to theIDbOrganizationSyncData
andIDbMemberSyncData
interfaces in the search sync worker to define the shape of the entity data to be synced with the search engine (link,link)manuallyCreated
column to the list of columns to select in theOrganizationRepository
andMemberRepository
classes in the search sync worker to query the database and return the entity data to be synced with the search engine (link,link)members
andactivity_data
tables in theMemberRepository
class in the search sync worker to simplify the query and avoid unnecessary joins that are not relevant for the sync process (link)MemberRepository
class in the search sync worker to include themanuallyCreated
column in the condition to filter the members based on whether they are manually created or have activity data to be synced with the search engine (link)manuallyCreated
property to themember
andorganization
objects in theInitService
class in the search sync worker to create mock entities to initialize the sync process (link,link)manuallyCreated
attribute to thep.bool_manuallyCreated
property in theMemberSyncService
andOrganizationSyncService
classes in the search sync worker to map the entity data to the search engine document format (link,link)manuallyCreated
property to the mock entity objects in the backend and search sync worker tests to test the new column and attribute (link,link,link,link,link,link,link,link,link,link)storeToRefs
function from thepinia
library in theMemberFormPage
component in the frontend, likely by mistake or leftover from a previous change (link,link)Checklist ✅
Feature
,Improvement
, orBug
.