Skip to main content

Overview

Thought Industries offers a single source of truth column in Redshift for tracking a record's state called "Status Group" (statusgroup). This column is a rollup of the various ways different tables reflect whether a given record is Active, Inactive, or Deleted.

Use statusgroup instead of the individual source columns (deleted, disabled, archived, active, status) in your queries. Those columns are still present on some tables for backward compatibility, but statusgroup is the recommended way to filter for active, inactive, or deleted records.

Values

statusgroup

ValueMeaningLogic
aActiveAll states that are not inactive or deleted. The default when no inactive or deleted condition is met.
iInactiveRecords that are intentionally archived, disabled, or hidden from learners and admins.
dDeletedRecords deleted

statusgroupupdatedat

Timestamp of the last update to statusgroup. Reflects any change made to the statusgroup column.

Table mapping

The mapping below covers Redshift tables that have a direct source column on the table itself driving statusgroup. For each table, the source column and the values that produce each statusgroup value are listed. Other Redshift tables include a statusgroup column too but are not listed here because when deletions occur, they are not tracked via a direct source column on the table itself.

info

Upcoming change — not yet released. The two milestonecourses rows in the table below describe behavior from an ETL update that has not shipped yet.

Redshift tableSource columnActive (a)Inactive (i)Deleted (d)
awardsdeletedFALSETRUE
bundlesstatusdraft, publishedarchiveddeleted
certificatesdeletedFALSETRUE
certificatetemplatesdeletedFALSETRUE
clientsdeletedFALSETRUE
clientsdisabledFALSETRUE
commentsdeletedFALSETRUE
companiesstatusactive, activeTrial, pendingCreation, pendingDeletion, pendingTermination, sandbox, terminationHold, terminationWait, trialCompleteddeleted
competencyassessmentsstatuspublishedarchiveddeleted
courseactionsdeletedFALSETRUE
coursegroupsstatuspublishedarchived
coursesstatusdraft, pending, published, startedarchiveddeleted
creditbatchesstatusactivearchived
discountgroupsstatusdraft, publishedarchiveddeleted
learningpathactionsdeletedFALSETRUE
learningpathsstatusdraft, publishedarchiveddeleted
meetingsdeletedFALSETRUE
milestonecoursesdeletedFALSETRUE
milestonecoursesarchivedFALSETRUE
milestonesdeletedFALSETRUE
pickablegroupsstatusdraft, publishedarchiveddeleted
productsstatusdraft, publishedarchiveddeleted
questionsdeletedFALSETRUE
quizattemptsstatusfinished, pending, started
sectionsstatusdraft, published
tagsarchivedFALSETRUE
usercoursesstatuscompleted, not-completedarchived
userlearningpathsstatuscompleted, not-completedarchived
userlicensesstatusactiveinactive
usersdisabledFALSETRUE

Tables without statusgroup

The following Redshift tables do not include a statusgroup column. For most, record state doesn't change after creation, so the column isn't needed. The few planned for a future update are flagged below.

  • awardtypes (planned for a future update)
  • certificatefieldsblocks (planned for a future update)
  • creditactions
  • locations
  • ltiattempts
  • organizations
  • purchases
  • sectioncompletions
  • subscriptionpurchases
  • waitlists

Restrictions

  • This column resides exclusively in Redshift and is unavailable via API.
  • Live ETL is required for status updates. If the ETL is down, updates may not be captured immediately.