Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Oct 1, 2024
2 parents ed62f1c + b3fa3ea commit 0d05304
Show file tree
Hide file tree
Showing 146 changed files with 4,808 additions and 5,630 deletions.
18 changes: 17 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const oldRestrictedImports = [
},
];

/** @type import('@seedcompany/eslint-plugin').ImportRestriction[] */
/** @type {import('@seedcompany/eslint-plugin').ImportRestriction[]} */
const restrictedImports = [
// Guard against ts hints trying to insert "src/" paths.
// It does that with basePath configured which is required for path aliases, even though it's never what we want.
Expand Down Expand Up @@ -72,6 +72,22 @@ const restrictedImports = [
path: ['..', '../..', '../../..'],
message: 'Not specific enough',
},
{
importNames: 'IntersectionType',
path: '@nestjs/graphql',
replacement: { importName: 'IntersectTypes', path: '~/common' },
message: 'Use our wrapper that allows for varargs & provides members array',
},
{
importNames: 'HttpAdapterHost',
path: '@nestjs/core',
replacement: { path: '~/core/http' },
},
{
importNames: 'NestMiddleware',
path: '@nestjs/common',
replacement: { importName: 'HttpMiddleware', path: '~/core/http' },
},
];

const namingConvention = [
Expand Down
19 changes: 16 additions & 3 deletions dbschema/engagement.esdl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module default {
abstract type Engagement extending Project::Child {
abstract type Engagement extending Project::Child, Comments::Aware {
required status: Engagement::Status {
default := Engagement::Status.InDevelopment;
}
Expand All @@ -24,7 +24,7 @@ module default {
.<engagement[is Engagement::Ceremony]
));

completedDate: cal::local_date {
completeDate: cal::local_date {
annotation description := "Translation / Growth Plan complete date";
}
disbursementCompleteDate: cal::local_date;
Expand All @@ -51,7 +51,20 @@ module default {
property firstScripture := (
exists .language.firstScriptureEngagement
);


trigger denyDuplicateFirstScriptureBasedOnExternal after insert, update for each do (
assert(
not __new__.firstScripture or not exists __new__.language.hasExternalFirstScripture,
message := "First scripture has already been marked as having been done externally"
)
);
trigger denyDuplicateFirstScriptureBasedOnOtherEngagement after insert, update for each do (
assert(
not exists (select __new__.language.engagements filter .firstScripture),
message := "Another engagement has already been marked as having done the first scripture"
)
);

required lukePartnership: bool {
default := false;
};
Expand Down
10 changes: 9 additions & 1 deletion dbschema/language.esdl
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
module default {
type Language extending Mixin::Postable, Resource, Project::ContextAware, Mixin::Named, Mixin::Pinnable, Mixin::Taggable {
type Language extending
Mixin::Postable,
Comments::Aware,
Resource,
Project::ContextAware,
Mixin::Named,
Mixin::Pinnable,
Mixin::Taggable
{
required displayName: str {
default := .name;
}
Expand Down
1,934 changes: 0 additions & 1,934 deletions dbschema/migrations/00001-m13xep3.edgeql

This file was deleted.

708 changes: 708 additions & 0 deletions dbschema/migrations/00001-m1zafss.edgeql

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions dbschema/migrations/00002-m1jtglk.edgeql

This file was deleted.

Loading

0 comments on commit 0d05304

Please sign in to comment.