-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for signed/published-resource contents in files
- Loading branch information
Showing
8 changed files
with
47 additions
and
18 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
"frontend-gelinkt-notuleren": patch | ||
--- | ||
|
||
Add support for signed-resources and published-resources which have their content in files instead of directly as text |
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 |
---|---|---|
@@ -1,18 +1,27 @@ | ||
import Model, { attr, belongsTo } from '@ember-data/model'; | ||
|
||
export default class PublishedResourceModel extends Model { | ||
/** Optional, content might be in .file instead **/ | ||
@attr content; | ||
@attr hashValue; | ||
@attr('datetime') createdOn; | ||
@attr submissionStatus; | ||
|
||
@belongsTo('blockchain-status', { inverse: null }) status; | ||
@belongsTo('gebruiker', { inverse: null }) gebruiker; | ||
@belongsTo('agenda', { inverse: 'publishedResource' }) agenda; | ||
@belongsTo('versioned-besluiten-lijst', { inverse: 'publishedResource' }) | ||
@belongsTo('blockchain-status', { async: true, inverse: null }) status; | ||
@belongsTo('gebruiker', { async: true, inverse: null }) gebruiker; | ||
@belongsTo('agenda', { async: true, inverse: 'publishedResource' }) agenda; | ||
@belongsTo('versioned-besluiten-lijst', { | ||
async: true, | ||
inverse: 'publishedResource', | ||
}) | ||
versionedBesluitenLijst; | ||
@belongsTo('versioned-behandeling', { inverse: 'publishedResource' }) | ||
@belongsTo('versioned-behandeling', { | ||
async: true, | ||
inverse: 'publishedResource', | ||
}) | ||
versionedBehandeling; | ||
@belongsTo('versioned-notulen', { inverse: 'publishedResource' }) | ||
@belongsTo('versioned-notulen', { async: true, inverse: 'publishedResource' }) | ||
versionedNotulen; | ||
/** Optional, content might be in .content instead **/ | ||
@belongsTo('file', { async: true, inverse: null }) file; | ||
} |
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 |
---|---|---|
@@ -1,18 +1,27 @@ | ||
import Model, { attr, belongsTo } from '@ember-data/model'; | ||
|
||
export default class SignedResourceModel extends Model { | ||
/** Optional, content might be in .file instead **/ | ||
@attr content; | ||
@attr hashValue; | ||
@attr('boolean', { defaultValue: false }) deleted; | ||
@attr('datetime') createdOn; | ||
|
||
@belongsTo('blockchain-status', { inverse: null }) status; | ||
@belongsTo('gebruiker', { inverse: null }) gebruiker; | ||
@belongsTo('agenda', { inverse: 'signedResources' }) agenda; | ||
@belongsTo('versioned-besluiten-lijst', { inverse: 'signedResources' }) | ||
@belongsTo('blockchain-status', { async: true, inverse: null }) status; | ||
@belongsTo('gebruiker', { async: true, inverse: null }) gebruiker; | ||
@belongsTo('agenda', { async: true, inverse: 'signedResources' }) agenda; | ||
@belongsTo('versioned-besluiten-lijst', { | ||
async: true, | ||
inverse: 'signedResources', | ||
}) | ||
versionedBesluitenLijst; | ||
@belongsTo('versioned-behandeling', { inverse: 'signedResources' }) | ||
@belongsTo('versioned-behandeling', { | ||
async: true, | ||
inverse: 'signedResources', | ||
}) | ||
versionedBehandeling; | ||
@belongsTo('versioned-notulen', { inverse: 'signedResources' }) | ||
@belongsTo('versioned-notulen', { async: true, inverse: 'signedResources' }) | ||
versionedNotulen; | ||
/** Optional, content might be in .content instead **/ | ||
@belongsTo('file', { async: true, inverse: null }) file; | ||
} |
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