-
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.
* Add new Part Template Repo/response processor. Allow to search by ID back end work. * partstemplate fixes/formatting * add put/post integration tests * typo in string * parttemplate facadeservice tests * parttemplate test updates * additional minor change for PartTemplate test Co-authored-by: rosss <rosss@PC1329>
- Loading branch information
1 parent
d4c77b9
commit 184491d
Showing
24 changed files
with
659 additions
and
7 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
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
12 changes: 12 additions & 0 deletions
12
src/Service.Host/client/src/actions/partTemplateActions.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { UpdateApiActions } from '@linn-it/linn-form-components-library'; | ||
import { partTemplateActionTypes as actionTypes } from './index'; | ||
import * as itemTypes from '../itemTypes'; | ||
import config from '../config'; | ||
|
||
export default new UpdateApiActions( | ||
itemTypes.partTemplate.item, | ||
itemTypes.partTemplate.actionType, | ||
itemTypes.partTemplate.uri, | ||
actionTypes, | ||
config.appRoot | ||
); |
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
14 changes: 14 additions & 0 deletions
14
src/Service.Host/client/src/reducers/parts/partTemplate.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { collectionStoreFactory } from '@linn-it/linn-form-components-library'; | ||
import { partTemplateActionTypes as actionTypes } from '../../actions'; | ||
import * as itemTypes from '../../itemTypes'; | ||
|
||
const defaultState = { | ||
loading: false, | ||
items: [] | ||
}; | ||
|
||
export default collectionStoreFactory( | ||
itemTypes.partTemplate.actionType, | ||
actionTypes, | ||
defaultState | ||
); |
4 changes: 4 additions & 0 deletions
4
src/Service.Host/client/src/selectors/partTemplateSelectors.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { ItemSelectors } from '@linn-it/linn-form-components-library'; | ||
import * as itemTypes from '../itemTypes'; | ||
|
||
export default new ItemSelectors(itemTypes.partTemplate.item); |
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
15 changes: 15 additions & 0 deletions
15
src/Service/ResponseProcessors/PartTemplateResponseProcessor.cs
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,15 @@ | ||
namespace Linn.Stores.Service.ResponseProcessors | ||
{ | ||
using System.Collections.Generic; | ||
using Linn.Common.Facade; | ||
using Linn.Common.Nancy.Facade; | ||
using Linn.Stores.Domain.LinnApps.Parts; | ||
|
||
public class PartTemplateResponseProcessor : JsonResponseProcessor<PartTemplate> | ||
{ | ||
public PartTemplateResponseProcessor(IResourceBuilder<PartTemplate> resourceBuilder) | ||
: base(resourceBuilder, "linnapps-part-template", 1) | ||
{ | ||
} | ||
} | ||
} |
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
Oops, something went wrong.