-
Notifications
You must be signed in to change notification settings - Fork 3
MODNOTES-294 and MODFQMMGR-1053 Add FQM config #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,69 @@ | ||
| [metadata] | ||
| team = "spitfire" | ||
| domain = "other" | ||
| module = "mod-notes" | ||
|
|
||
| [[sources]] | ||
| name = "note" | ||
| table = "note" | ||
|
|
||
| [[sources]] | ||
| name = "link" | ||
| table = "link" | ||
|
|
||
| [[sources]] | ||
| name = "note_link" | ||
| table = "note_link" | ||
|
|
||
| [[sources]] | ||
| name = "note_type" | ||
| table = "type" | ||
|
|
||
| [[entityTypes]] | ||
| name = "note" | ||
| source = "note" | ||
| schema = "src/main/resources/fqm/schemas/note.yaml" | ||
| permissions = ["notes.collection.get"] | ||
| sort = ["id", "ASC"] | ||
| includeJsonbField = false | ||
| fieldExclusions = ["type", "links"] | ||
|
|
||
| [[entityTypes]] | ||
| name = "link" | ||
| source = "link" | ||
| schema = "src/main/resources/fqm/schemas/link.yaml" | ||
| permissions = ["note.links.collection.get"] | ||
| sort = ["id", "ASC"] | ||
| includeJsonbField = false | ||
|
|
||
| [[entityTypes]] | ||
| name = "note_link" | ||
| source = "note_link" | ||
| schema = "src/main/resources/fqm/schemas/noteLink.yaml" | ||
| permissions = ["note.links.collection.get"] | ||
| sort = ["note_id", "ASC"] | ||
| includeJsonbField = false | ||
|
|
||
| [[entityTypes]] | ||
| name = "note_type" | ||
| source = "note_type" | ||
| schema = "src/main/resources/fqm/schemas/noteType.yaml" | ||
| permissions = ["note.types.collection.get"] | ||
| sort = ["id", "ASC"] | ||
| includeJsonbField = false | ||
|
|
||
| [entityTypes.fieldOverrides.metadata_created_date] | ||
| x-fqm-visible-by-default = false | ||
| x-fqm-essential = false | ||
|
|
||
| [entityTypes.fieldOverrides.metadata_created_by_user_id] | ||
| x-fqm-visible-by-default = false | ||
| x-fqm-essential = false | ||
|
|
||
| [entityTypes.fieldOverrides.metadata_updated_date] | ||
| x-fqm-visible-by-default = false | ||
| x-fqm-essential = false | ||
|
|
||
| [entityTypes.fieldOverrides.metadata_updated_by_user_id] | ||
| x-fqm-visible-by-default = false | ||
| x-fqm-essential = false | ||
This file contains hidden or 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,27 @@ | ||
| # This wrapper defines the FQM-only link shape directly so the runtime schema can | ||
| # stay focused on the API object exposed by mod-notes. | ||
| type: object | ||
| title: Note link | ||
| description: Link record for FQM | ||
| properties: | ||
| linkId: | ||
| $ref: '../../swagger.api/schemas/common.yaml#/uuid' | ||
| description: UUID primary key of the link row; used by note_link.link_id | ||
| x-fqm-value-getter: ${source}.id | ||
| x-fqm-is-id-column: true | ||
| x-fqm-visibility: "hidden" | ||
| x-fqm-visible-by-default: true | ||
| x-fqm-essential: true | ||
| x-fqm-joins-to: | ||
| - targetModule: mod-notes | ||
| targetEntity: link | ||
| targetField: link_id | ||
| type: equality-cast-uuid | ||
| objectId: | ||
| $ref: '../../swagger.api/schemas/link.yaml#/link/properties/id' | ||
| type: | ||
| $ref: '../../swagger.api/schemas/link.yaml#/link/properties/type' | ||
| required: | ||
| - linkId | ||
| - objectId | ||
| - type |
This file contains hidden or 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,3 @@ | ||
| # fqm-tools only accepts a file path in `schema = ...`; it cannot target a nested | ||
| # schema fragment there, so this wrapper bridges to the real runtime schema. | ||
| $ref: '../../swagger.api/schemas/note.yaml#/note' |
This file contains hidden or 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,35 @@ | ||
| # Unlike the other wrappers, note_link has no runtime schema to point at, so this | ||
| # file defines the FQM-only association shape directly. | ||
| type: object | ||
| title: Note-link association | ||
| description: Association between a note and a link record | ||
| properties: | ||
|
mweaver-ebsco marked this conversation as resolved.
|
||
| noteId: | ||
| $ref: '../../swagger.api/schemas/common.yaml#/uuid' | ||
| description: UUID of the associated note | ||
| x-fqm-value-getter: ${source}.note_id | ||
| x-fqm-is-id-column: true # There are 2 ID columns here, matching the table's primary key. | ||
| x-fqm-visibility: "hidden" | ||
| x-fqm-essential: true | ||
| x-fqm-visible-by-default: false | ||
| x-fqm-joins-to: | ||
| - targetModule: mod-notes | ||
| targetEntity: note | ||
| targetField: id | ||
| type: equality-cast-uuid | ||
| linkId: | ||
| $ref: '../../swagger.api/schemas/common.yaml#/uuid' | ||
| description: UUID of the associated link | ||
| x-fqm-value-getter: ${source}.link_id | ||
| x-fqm-is-id-column: true # There are 2 ID columns here, matching the table's primary key. | ||
| x-fqm-visibility: "hidden" | ||
| x-fqm-essential: true | ||
| x-fqm-visible-by-default: false | ||
| x-fqm-joins-to: | ||
| - targetModule: mod-notes | ||
| targetEntity: link | ||
| targetField: link_id | ||
| type: equality-cast-uuid | ||
| required: | ||
| - noteId | ||
| - linkId | ||
This file contains hidden or 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,3 @@ | ||
| # fqm-tools only accepts a file path in `schema = ...`; it cannot target a nested | ||
| # schema fragment there, so this wrapper bridges to the real runtime schema. | ||
| $ref: '../../swagger.api/schemas/noteType.yaml#/noteType' |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,32 @@ | ||
| { | ||
| "fqm.entityType.note": "Note", | ||
| "fqm.entityType.note._description": "Notes stored in mod-notes.", | ||
| "fqm.entityType.note.id": "Note UUID", | ||
| "fqm.entityType.note.type_id": "Note type UUID", | ||
| "fqm.entityType.note.title": "Title", | ||
| "fqm.entityType.note.domain": "Domain", | ||
| "fqm.entityType.note.content": "Content", | ||
| "fqm.entityType.note.pop_up_on_check_out": "Show pop-up on checkout", | ||
| "fqm.entityType.note.pop_up_on_user": "Show pop-up on user", | ||
| "fqm.entityType.note.metadata_created_date": "Created at", | ||
| "fqm.entityType.note.metadata_created_by_user_id": "Created by user UUID", | ||
| "fqm.entityType.note.metadata_updated_date": "Updated at", | ||
| "fqm.entityType.note.metadata_updated_by_user_id": "Updated by user UUID", | ||
| "fqm.entityType.link": "Link", | ||
| "fqm.entityType.link._description": "Link records used by notes.", | ||
| "fqm.entityType.link.link_id": "Link UUID", | ||
| "fqm.entityType.link.object_id": "Linked record ID", | ||
| "fqm.entityType.link.type": "Linked record type", | ||
| "fqm.entityType.note_link": "Note link", | ||
| "fqm.entityType.note_link._description": "Relationships between notes and link records.", | ||
| "fqm.entityType.note_link.note_id": "Note UUID", | ||
| "fqm.entityType.note_link.link_id": "Link UUID", | ||
| "fqm.entityType.note_type": "Note type", | ||
| "fqm.entityType.note_type._description": "Configured note types.", | ||
| "fqm.entityType.note_type.id": "Note type UUID", | ||
| "fqm.entityType.note_type.name": "Name", | ||
| "fqm.entityType.note_type.metadata_created_date": "Created at", | ||
| "fqm.entityType.note_type.metadata_created_by_user_id": "Created by user UUID", | ||
| "fqm.entityType.note_type.metadata_updated_date": "Updated at", | ||
| "fqm.entityType.note_type.metadata_updated_by_user_id": "Updated by user UUID" | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.