feat(assessment): add immutable family versions and the demo bank loader
This commit is contained in:
1 parent
94488e2b57
commit
204c6bae62
28 files changed
+6269
-9
No files matched your search
@@ -0,0 +1,733 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.31.1
|
||||
// source: assessment_bank.sql
|
||||
|
||||
package sqlc
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
)
|
||||
|
||||
const countPublishedAssessmentFamilies = `-- name: CountPublishedAssessmentFamilies :one
|
||||
SELECT count(DISTINCT family_key)::integer AS published
|
||||
FROM assessment_families
|
||||
WHERE
|
||||
category = $1
|
||||
AND lifecycle = 'published'
|
||||
`
|
||||
|
||||
// Counts the families of a category that have at least one published
|
||||
// version, however many versions each has.
|
||||
func (q *Queries) CountPublishedAssessmentFamilies(ctx context.Context, category string) (int32, error) {
|
||||
row := q.db.QueryRow(ctx, countPublishedAssessmentFamilies, category)
|
||||
var published int32
|
||||
err := row.Scan(&published)
|
||||
return published, err
|
||||
}
|
||||
|
||||
const getAssessmentFamilyByID = `-- name: GetAssessmentFamilyByID :one
|
||||
SELECT
|
||||
id,
|
||||
family_key,
|
||||
version,
|
||||
category,
|
||||
specialization,
|
||||
title,
|
||||
bundle_name,
|
||||
author,
|
||||
reviewer,
|
||||
review_status,
|
||||
seed_generator,
|
||||
answer_key,
|
||||
rubric,
|
||||
content_sha256,
|
||||
hash_scheme,
|
||||
lifecycle,
|
||||
created_at,
|
||||
published_at,
|
||||
published_by,
|
||||
retired_at,
|
||||
retired_by
|
||||
FROM assessment_families
|
||||
WHERE id = $1
|
||||
`
|
||||
|
||||
func (q *Queries) GetAssessmentFamilyByID(ctx context.Context, id pgtype.UUID) (AssessmentFamily, error) {
|
||||
row := q.db.QueryRow(ctx, getAssessmentFamilyByID, id)
|
||||
var i AssessmentFamily
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.FamilyKey,
|
||||
&i.Version,
|
||||
&i.Category,
|
||||
&i.Specialization,
|
||||
&i.Title,
|
||||
&i.BundleName,
|
||||
&i.Author,
|
||||
&i.Reviewer,
|
||||
&i.ReviewStatus,
|
||||
&i.SeedGenerator,
|
||||
&i.AnswerKey,
|
||||
&i.Rubric,
|
||||
&i.ContentSha256,
|
||||
&i.HashScheme,
|
||||
&i.Lifecycle,
|
||||
&i.CreatedAt,
|
||||
&i.PublishedAt,
|
||||
&i.PublishedBy,
|
||||
&i.RetiredAt,
|
||||
&i.RetiredBy,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
const getAssessmentFamilyVersion = `-- name: GetAssessmentFamilyVersion :one
|
||||
SELECT
|
||||
id,
|
||||
family_key,
|
||||
version,
|
||||
category,
|
||||
specialization,
|
||||
title,
|
||||
bundle_name,
|
||||
author,
|
||||
reviewer,
|
||||
review_status,
|
||||
seed_generator,
|
||||
answer_key,
|
||||
rubric,
|
||||
content_sha256,
|
||||
hash_scheme,
|
||||
lifecycle,
|
||||
created_at,
|
||||
published_at,
|
||||
published_by,
|
||||
retired_at,
|
||||
retired_by
|
||||
FROM assessment_families
|
||||
WHERE
|
||||
family_key = $1
|
||||
AND version = $2
|
||||
`
|
||||
|
||||
type GetAssessmentFamilyVersionParams struct {
|
||||
FamilyKey string
|
||||
Version int32
|
||||
}
|
||||
|
||||
func (q *Queries) GetAssessmentFamilyVersion(ctx context.Context, arg GetAssessmentFamilyVersionParams) (AssessmentFamily, error) {
|
||||
row := q.db.QueryRow(ctx, getAssessmentFamilyVersion, arg.FamilyKey, arg.Version)
|
||||
var i AssessmentFamily
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.FamilyKey,
|
||||
&i.Version,
|
||||
&i.Category,
|
||||
&i.Specialization,
|
||||
&i.Title,
|
||||
&i.BundleName,
|
||||
&i.Author,
|
||||
&i.Reviewer,
|
||||
&i.ReviewStatus,
|
||||
&i.SeedGenerator,
|
||||
&i.AnswerKey,
|
||||
&i.Rubric,
|
||||
&i.ContentSha256,
|
||||
&i.HashScheme,
|
||||
&i.Lifecycle,
|
||||
&i.CreatedAt,
|
||||
&i.PublishedAt,
|
||||
&i.PublishedBy,
|
||||
&i.RetiredAt,
|
||||
&i.RetiredBy,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
const getCurrentAssessmentCategoryOpening = `-- name: GetCurrentAssessmentCategoryOpening :one
|
||||
SELECT
|
||||
id,
|
||||
category,
|
||||
policy_version_id,
|
||||
opened_by,
|
||||
required_families,
|
||||
published_families,
|
||||
opened_at
|
||||
FROM assessment_category_openings
|
||||
WHERE category = $1
|
||||
ORDER BY opened_at DESC, id DESC
|
||||
LIMIT 1
|
||||
`
|
||||
|
||||
func (q *Queries) GetCurrentAssessmentCategoryOpening(ctx context.Context, category string) (AssessmentCategoryOpening, error) {
|
||||
row := q.db.QueryRow(ctx, getCurrentAssessmentCategoryOpening, category)
|
||||
var i AssessmentCategoryOpening
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.Category,
|
||||
&i.PolicyVersionID,
|
||||
&i.OpenedBy,
|
||||
&i.RequiredFamilies,
|
||||
&i.PublishedFamilies,
|
||||
&i.OpenedAt,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
const getDatabaseTime = `-- name: GetDatabaseTime :one
|
||||
SELECT clock_timestamp()::timestamptz AS now
|
||||
`
|
||||
|
||||
// The database clock, which stamps the effective time of a policy version, so
|
||||
// "the version in force now" is judged against the same clock.
|
||||
func (q *Queries) GetDatabaseTime(ctx context.Context) (pgtype.Timestamptz, error) {
|
||||
row := q.db.QueryRow(ctx, getDatabaseTime)
|
||||
var now pgtype.Timestamptz
|
||||
err := row.Scan(&now)
|
||||
return now, err
|
||||
}
|
||||
|
||||
const getLatestAssessmentFamily = `-- name: GetLatestAssessmentFamily :one
|
||||
SELECT
|
||||
id,
|
||||
family_key,
|
||||
version,
|
||||
category,
|
||||
specialization,
|
||||
title,
|
||||
bundle_name,
|
||||
author,
|
||||
reviewer,
|
||||
review_status,
|
||||
seed_generator,
|
||||
answer_key,
|
||||
rubric,
|
||||
content_sha256,
|
||||
hash_scheme,
|
||||
lifecycle,
|
||||
created_at,
|
||||
published_at,
|
||||
published_by,
|
||||
retired_at,
|
||||
retired_by
|
||||
FROM assessment_families
|
||||
WHERE family_key = $1
|
||||
ORDER BY version DESC
|
||||
LIMIT 1
|
||||
`
|
||||
|
||||
func (q *Queries) GetLatestAssessmentFamily(ctx context.Context, familyKey string) (AssessmentFamily, error) {
|
||||
row := q.db.QueryRow(ctx, getLatestAssessmentFamily, familyKey)
|
||||
var i AssessmentFamily
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.FamilyKey,
|
||||
&i.Version,
|
||||
&i.Category,
|
||||
&i.Specialization,
|
||||
&i.Title,
|
||||
&i.BundleName,
|
||||
&i.Author,
|
||||
&i.Reviewer,
|
||||
&i.ReviewStatus,
|
||||
&i.SeedGenerator,
|
||||
&i.AnswerKey,
|
||||
&i.Rubric,
|
||||
&i.ContentSha256,
|
||||
&i.HashScheme,
|
||||
&i.Lifecycle,
|
||||
&i.CreatedAt,
|
||||
&i.PublishedAt,
|
||||
&i.PublishedBy,
|
||||
&i.RetiredAt,
|
||||
&i.RetiredBy,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
const getPublishedAssessmentFamily = `-- name: GetPublishedAssessmentFamily :one
|
||||
SELECT
|
||||
id,
|
||||
family_key,
|
||||
version,
|
||||
category,
|
||||
specialization,
|
||||
title,
|
||||
bundle_name,
|
||||
author,
|
||||
reviewer,
|
||||
review_status,
|
||||
seed_generator,
|
||||
answer_key,
|
||||
rubric,
|
||||
content_sha256,
|
||||
hash_scheme,
|
||||
lifecycle,
|
||||
created_at,
|
||||
published_at,
|
||||
published_by,
|
||||
retired_at,
|
||||
retired_by
|
||||
FROM assessment_families
|
||||
WHERE
|
||||
family_key = $1
|
||||
AND lifecycle = 'published'
|
||||
`
|
||||
|
||||
// The published version of a family, if any. The partial unique index
|
||||
// assessment_families_one_published_key allows at most one.
|
||||
func (q *Queries) GetPublishedAssessmentFamily(ctx context.Context, familyKey string) (AssessmentFamily, error) {
|
||||
row := q.db.QueryRow(ctx, getPublishedAssessmentFamily, familyKey)
|
||||
var i AssessmentFamily
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.FamilyKey,
|
||||
&i.Version,
|
||||
&i.Category,
|
||||
&i.Specialization,
|
||||
&i.Title,
|
||||
&i.BundleName,
|
||||
&i.Author,
|
||||
&i.Reviewer,
|
||||
&i.ReviewStatus,
|
||||
&i.SeedGenerator,
|
||||
&i.AnswerKey,
|
||||
&i.Rubric,
|
||||
&i.ContentSha256,
|
||||
&i.HashScheme,
|
||||
&i.Lifecycle,
|
||||
&i.CreatedAt,
|
||||
&i.PublishedAt,
|
||||
&i.PublishedBy,
|
||||
&i.RetiredAt,
|
||||
&i.RetiredBy,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
const insertAssessmentCategoryOpening = `-- name: InsertAssessmentCategoryOpening :one
|
||||
INSERT INTO assessment_category_openings (
|
||||
id,
|
||||
category,
|
||||
policy_version_id,
|
||||
opened_by,
|
||||
required_families,
|
||||
published_families,
|
||||
opened_at
|
||||
) VALUES (
|
||||
$1,
|
||||
$2,
|
||||
$3,
|
||||
$4,
|
||||
0,
|
||||
0,
|
||||
clock_timestamp()
|
||||
)
|
||||
RETURNING
|
||||
id,
|
||||
category,
|
||||
policy_version_id,
|
||||
opened_by,
|
||||
required_families,
|
||||
published_families,
|
||||
opened_at
|
||||
`
|
||||
|
||||
type InsertAssessmentCategoryOpeningParams struct {
|
||||
ID pgtype.UUID
|
||||
Category string
|
||||
PolicyVersionID pgtype.UUID
|
||||
OpenedBy string
|
||||
}
|
||||
|
||||
// Stores an opening. The insert trigger derives required_families from the
|
||||
// policy document and counts the published families, and the coverage CHECK
|
||||
// refuses the row when they are fewer; both numbers from the caller are
|
||||
// replaced by the trigger's.
|
||||
func (q *Queries) InsertAssessmentCategoryOpening(ctx context.Context, arg InsertAssessmentCategoryOpeningParams) (AssessmentCategoryOpening, error) {
|
||||
row := q.db.QueryRow(ctx, insertAssessmentCategoryOpening,
|
||||
arg.ID,
|
||||
arg.Category,
|
||||
arg.PolicyVersionID,
|
||||
arg.OpenedBy,
|
||||
)
|
||||
var i AssessmentCategoryOpening
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.Category,
|
||||
&i.PolicyVersionID,
|
||||
&i.OpenedBy,
|
||||
&i.RequiredFamilies,
|
||||
&i.PublishedFamilies,
|
||||
&i.OpenedAt,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
const insertAssessmentFamily = `-- name: InsertAssessmentFamily :one
|
||||
INSERT INTO assessment_families (
|
||||
id,
|
||||
family_key,
|
||||
version,
|
||||
category,
|
||||
specialization,
|
||||
title,
|
||||
bundle_name,
|
||||
author,
|
||||
reviewer,
|
||||
review_status,
|
||||
seed_generator,
|
||||
answer_key,
|
||||
rubric,
|
||||
content_sha256,
|
||||
hash_scheme,
|
||||
lifecycle
|
||||
) VALUES (
|
||||
$1,
|
||||
$2,
|
||||
$3,
|
||||
$4,
|
||||
$5,
|
||||
$6,
|
||||
$7,
|
||||
$8,
|
||||
$9,
|
||||
$10,
|
||||
$11,
|
||||
$12,
|
||||
$13,
|
||||
$14,
|
||||
$15,
|
||||
'draft'
|
||||
)
|
||||
ON CONFLICT DO NOTHING
|
||||
RETURNING
|
||||
id,
|
||||
family_key,
|
||||
version,
|
||||
category,
|
||||
specialization,
|
||||
title,
|
||||
bundle_name,
|
||||
author,
|
||||
reviewer,
|
||||
review_status,
|
||||
seed_generator,
|
||||
answer_key,
|
||||
rubric,
|
||||
content_sha256,
|
||||
hash_scheme,
|
||||
lifecycle,
|
||||
created_at,
|
||||
published_at,
|
||||
published_by,
|
||||
retired_at,
|
||||
retired_by
|
||||
`
|
||||
|
||||
type InsertAssessmentFamilyParams struct {
|
||||
ID pgtype.UUID
|
||||
FamilyKey string
|
||||
Version int32
|
||||
Category string
|
||||
Specialization string
|
||||
Title string
|
||||
BundleName string
|
||||
Author string
|
||||
Reviewer pgtype.Text
|
||||
ReviewStatus string
|
||||
SeedGenerator []byte
|
||||
AnswerKey []byte
|
||||
Rubric []byte
|
||||
ContentSha256 []byte
|
||||
HashScheme int16
|
||||
}
|
||||
|
||||
// Stores a new family version as a draft and returns the stored row with the
|
||||
// creation time set by the stamp trigger. A taken ID or (family_key, version)
|
||||
// returns no row instead of an error, so a conflict does not abort the
|
||||
// surrounding transaction.
|
||||
func (q *Queries) InsertAssessmentFamily(ctx context.Context, arg InsertAssessmentFamilyParams) (AssessmentFamily, error) {
|
||||
row := q.db.QueryRow(ctx, insertAssessmentFamily,
|
||||
arg.ID,
|
||||
arg.FamilyKey,
|
||||
arg.Version,
|
||||
arg.Category,
|
||||
arg.Specialization,
|
||||
arg.Title,
|
||||
arg.BundleName,
|
||||
arg.Author,
|
||||
arg.Reviewer,
|
||||
arg.ReviewStatus,
|
||||
arg.SeedGenerator,
|
||||
arg.AnswerKey,
|
||||
arg.Rubric,
|
||||
arg.ContentSha256,
|
||||
arg.HashScheme,
|
||||
)
|
||||
var i AssessmentFamily
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.FamilyKey,
|
||||
&i.Version,
|
||||
&i.Category,
|
||||
&i.Specialization,
|
||||
&i.Title,
|
||||
&i.BundleName,
|
||||
&i.Author,
|
||||
&i.Reviewer,
|
||||
&i.ReviewStatus,
|
||||
&i.SeedGenerator,
|
||||
&i.AnswerKey,
|
||||
&i.Rubric,
|
||||
&i.ContentSha256,
|
||||
&i.HashScheme,
|
||||
&i.Lifecycle,
|
||||
&i.CreatedAt,
|
||||
&i.PublishedAt,
|
||||
&i.PublishedBy,
|
||||
&i.RetiredAt,
|
||||
&i.RetiredBy,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
const listAssessmentFamiliesByCategory = `-- name: ListAssessmentFamiliesByCategory :many
|
||||
SELECT
|
||||
id,
|
||||
family_key,
|
||||
version,
|
||||
category,
|
||||
specialization,
|
||||
title,
|
||||
bundle_name,
|
||||
author,
|
||||
reviewer,
|
||||
review_status,
|
||||
seed_generator,
|
||||
answer_key,
|
||||
rubric,
|
||||
content_sha256,
|
||||
hash_scheme,
|
||||
lifecycle,
|
||||
created_at,
|
||||
published_at,
|
||||
published_by,
|
||||
retired_at,
|
||||
retired_by
|
||||
FROM assessment_families
|
||||
WHERE
|
||||
category = $1
|
||||
AND (family_key, version) > ($2::text, $3::integer)
|
||||
ORDER BY family_key ASC, version ASC
|
||||
LIMIT $4
|
||||
`
|
||||
|
||||
type ListAssessmentFamiliesByCategoryParams struct {
|
||||
Category string
|
||||
AfterKey string
|
||||
AfterVersion int32
|
||||
PageSize int32
|
||||
}
|
||||
|
||||
// One page of the versions of a category in key and version order, after the
|
||||
// given position; an empty key and version 0 start at the beginning. The
|
||||
// (family_key, version) unique index serves the scan.
|
||||
func (q *Queries) ListAssessmentFamiliesByCategory(ctx context.Context, arg ListAssessmentFamiliesByCategoryParams) ([]AssessmentFamily, error) {
|
||||
rows, err := q.db.Query(ctx, listAssessmentFamiliesByCategory,
|
||||
arg.Category,
|
||||
arg.AfterKey,
|
||||
arg.AfterVersion,
|
||||
arg.PageSize,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer rows.Close()
|
||||
var items []AssessmentFamily
|
||||
for rows.Next() {
|
||||
var i AssessmentFamily
|
||||
if err := rows.Scan(
|
||||
&i.ID,
|
||||
&i.FamilyKey,
|
||||
&i.Version,
|
||||
&i.Category,
|
||||
&i.Specialization,
|
||||
&i.Title,
|
||||
&i.BundleName,
|
||||
&i.Author,
|
||||
&i.Reviewer,
|
||||
&i.ReviewStatus,
|
||||
&i.SeedGenerator,
|
||||
&i.AnswerKey,
|
||||
&i.Rubric,
|
||||
&i.ContentSha256,
|
||||
&i.HashScheme,
|
||||
&i.Lifecycle,
|
||||
&i.CreatedAt,
|
||||
&i.PublishedAt,
|
||||
&i.PublishedBy,
|
||||
&i.RetiredAt,
|
||||
&i.RetiredBy,
|
||||
); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
items = append(items, i)
|
||||
}
|
||||
if err := rows.Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return items, nil
|
||||
}
|
||||
|
||||
const lockAssessmentCategory = `-- name: LockAssessmentCategory :exec
|
||||
SELECT pg_advisory_xact_lock(
|
||||
hashtextextended('lincodex.assessment.category:' || $1::text, 0)
|
||||
)
|
||||
`
|
||||
|
||||
// Serializes the operations that change which versions of a category are
|
||||
// published or open the category, until the transaction ends. The key is
|
||||
// namespaced, so it cannot collide with another use of advisory locks.
|
||||
func (q *Queries) LockAssessmentCategory(ctx context.Context, category string) error {
|
||||
_, err := q.db.Exec(ctx, lockAssessmentCategory, category)
|
||||
return err
|
||||
}
|
||||
|
||||
const publishAssessmentFamily = `-- name: PublishAssessmentFamily :one
|
||||
UPDATE assessment_families
|
||||
SET
|
||||
lifecycle = 'published',
|
||||
published_by = $1
|
||||
WHERE
|
||||
id = $2
|
||||
AND lifecycle = 'draft'
|
||||
RETURNING
|
||||
id,
|
||||
family_key,
|
||||
version,
|
||||
category,
|
||||
specialization,
|
||||
title,
|
||||
bundle_name,
|
||||
author,
|
||||
reviewer,
|
||||
review_status,
|
||||
seed_generator,
|
||||
answer_key,
|
||||
rubric,
|
||||
content_sha256,
|
||||
hash_scheme,
|
||||
lifecycle,
|
||||
created_at,
|
||||
published_at,
|
||||
published_by,
|
||||
retired_at,
|
||||
retired_by
|
||||
`
|
||||
|
||||
type PublishAssessmentFamilyParams struct {
|
||||
Actor pgtype.Text
|
||||
ID pgtype.UUID
|
||||
}
|
||||
|
||||
// Moves a draft to published by the named operator and returns the row with
|
||||
// the publication time set by the guard trigger. No row means the version
|
||||
// was not a draft any more.
|
||||
func (q *Queries) PublishAssessmentFamily(ctx context.Context, arg PublishAssessmentFamilyParams) (AssessmentFamily, error) {
|
||||
row := q.db.QueryRow(ctx, publishAssessmentFamily, arg.Actor, arg.ID)
|
||||
var i AssessmentFamily
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.FamilyKey,
|
||||
&i.Version,
|
||||
&i.Category,
|
||||
&i.Specialization,
|
||||
&i.Title,
|
||||
&i.BundleName,
|
||||
&i.Author,
|
||||
&i.Reviewer,
|
||||
&i.ReviewStatus,
|
||||
&i.SeedGenerator,
|
||||
&i.AnswerKey,
|
||||
&i.Rubric,
|
||||
&i.ContentSha256,
|
||||
&i.HashScheme,
|
||||
&i.Lifecycle,
|
||||
&i.CreatedAt,
|
||||
&i.PublishedAt,
|
||||
&i.PublishedBy,
|
||||
&i.RetiredAt,
|
||||
&i.RetiredBy,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
|
||||
const retireAssessmentFamily = `-- name: RetireAssessmentFamily :one
|
||||
UPDATE assessment_families
|
||||
SET
|
||||
lifecycle = 'retired',
|
||||
retired_by = $1
|
||||
WHERE
|
||||
id = $2
|
||||
AND lifecycle = 'published'
|
||||
RETURNING
|
||||
id,
|
||||
family_key,
|
||||
version,
|
||||
category,
|
||||
specialization,
|
||||
title,
|
||||
bundle_name,
|
||||
author,
|
||||
reviewer,
|
||||
review_status,
|
||||
seed_generator,
|
||||
answer_key,
|
||||
rubric,
|
||||
content_sha256,
|
||||
hash_scheme,
|
||||
lifecycle,
|
||||
created_at,
|
||||
published_at,
|
||||
published_by,
|
||||
retired_at,
|
||||
retired_by
|
||||
`
|
||||
|
||||
type RetireAssessmentFamilyParams struct {
|
||||
Actor pgtype.Text
|
||||
ID pgtype.UUID
|
||||
}
|
||||
|
||||
func (q *Queries) RetireAssessmentFamily(ctx context.Context, arg RetireAssessmentFamilyParams) (AssessmentFamily, error) {
|
||||
row := q.db.QueryRow(ctx, retireAssessmentFamily, arg.Actor, arg.ID)
|
||||
var i AssessmentFamily
|
||||
err := row.Scan(
|
||||
&i.ID,
|
||||
&i.FamilyKey,
|
||||
&i.Version,
|
||||
&i.Category,
|
||||
&i.Specialization,
|
||||
&i.Title,
|
||||
&i.BundleName,
|
||||
&i.Author,
|
||||
&i.Reviewer,
|
||||
&i.ReviewStatus,
|
||||
&i.SeedGenerator,
|
||||
&i.AnswerKey,
|
||||
&i.Rubric,
|
||||
&i.ContentSha256,
|
||||
&i.HashScheme,
|
||||
&i.Lifecycle,
|
||||
&i.CreatedAt,
|
||||
&i.PublishedAt,
|
||||
&i.PublishedBy,
|
||||
&i.RetiredAt,
|
||||
&i.RetiredBy,
|
||||
)
|
||||
return i, err
|
||||
}
|
||||
Reference in new issue
Block a user