-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
384 should solution and organization extend metarequirement (#405)
* - Organizations and Solutions are now requirements - generalized code * - styling: datatables now have striped rows - refactor: renamed enpoints to align with ReqType enum - refactor: parent component properties moved to Belongs relations * Lifted domain folder out of server folder * Updated nuxt config settings
- Loading branch information
Showing
287 changed files
with
3,033 additions
and
3,495 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * from './AppRole.js'; | ||
export * from './AppUser.js'; | ||
export * from './AppUserOrganizationRole.js'; | ||
export * from './AuditLog.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Entity } from "@mikro-orm/core"; | ||
import { RequirementRelation } from "./RequirementRelation.js"; | ||
import { MetaRequirement } from "../requirements/MetaRequirement.js"; | ||
import { type Properties } from "../types/index.js"; | ||
|
||
/** | ||
* X → Y | ||
* | ||
* Meta-requirement X applies to requirement Y | ||
*/ | ||
@Entity() | ||
export class Characterizes extends RequirementRelation { | ||
constructor(props: Properties<Omit<Characterizes, 'id' | 'left'> & { left: MetaRequirement }>) { | ||
super(props); | ||
this.left = props.left; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ import { Extends } from "./Extends.js"; | |
|
||
/** | ||
* X » Y | ||
* | ||
* X adds detail to properties of Y | ||
*/ | ||
@Entity() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { v7 as uuidv7 } from 'uuid'; | ||
import { BaseEntity, Cascade, Entity, ManyToOne, Property } from "@mikro-orm/core"; | ||
import { Requirement } from '../requirements/Requirement.js' | ||
import { type Properties } from '../types/index.js'; | ||
|
||
/** | ||
* Relations between requirements | ||
*/ | ||
@Entity({ abstract: true, discriminatorColumn: 'rel_type' }) | ||
export abstract class RequirementRelation extends BaseEntity { | ||
constructor(props: Properties<Omit<RequirementRelation, 'id'>>) { | ||
super() | ||
this.id = uuidv7(); | ||
this.left = props.left; | ||
this.right = props.right; | ||
} | ||
|
||
/** | ||
* The unique identifier of the RequirementRelation | ||
*/ | ||
@Property({ type: 'uuid', primary: true }) | ||
id: string; | ||
|
||
@ManyToOne({ entity: () => Requirement, cascade: [Cascade.REMOVE] }) | ||
left: Requirement | ||
|
||
@ManyToOne({ entity: () => Requirement, cascade: [Cascade.REMOVE] }) | ||
right: Requirement | ||
} |
Oops, something went wrong.