Skip to content

Feature: Json forms support#845

Merged
timotheeguerin merged 21 commits into
masterfrom
feature/json-forms
Nov 16, 2017
Merged

Feature: Json forms support#845
timotheeguerin merged 21 commits into
masterfrom
feature/json-forms

Conversation

@timotheeguerin
Copy link
Copy Markdown
Member

@timotheeguerin timotheeguerin commented Nov 8, 2017

fix #844

image


protected _propagateChange: (value: any) => void = null;
protected _duration: string;
protected _duration: any;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the type of this now? a duration? should set the type instead of any

* otherwise next smaller unit will be checked until last unit.
*/
private _setValueAndUnit() {
if (this.duration) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you do a guard check here instead of a big nested

Comment thread app/models/dtos/task-create.dto.ts Outdated

@DtoAttr()
public constraints?: ConstraintDto;
@DtoAttr() public constraints?: ConstraintDto;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make constrains a dto class not just interface

@@ -2,6 +2,9 @@ import * as moment from "moment";

export class ProxyUtil {
public static decoratePool(pool: any): any {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should be able to remove that completely now

import { SidebarRef } from "app/components/base/sidebar";
import { JobCreateBasicDialogComponent } from "app/components/job/action";
import { Pool, ServerError } from "app/models";
// import { JobCreateDto } from "app/models/dtos";
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

-update duration picker duration type to moment.Duration and related update in job/task
@timotheeguerin timotheeguerin merged commit 4c072b6 into master Nov 16, 2017
@timotheeguerin timotheeguerin deleted the feature/json-forms branch November 16, 2017 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to write json payload in the create forms and submit instead of UI

3 participants