Skip to content
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

Feature: Json forms support #845

Merged
merged 21 commits into from
Nov 16, 2017
Merged

Feature: Json forms support #845

merged 21 commits into from
Nov 16, 2017

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Nov 8, 2017

fix #844

image

@@ -44,13 +44,13 @@ export class DurationPickerComponent implements ControlValueAccessor {
@Input() public allowUnlimited: boolean = true;

protected _propagateChange: (value: any) => void = null;
protected _duration: string;
protected _duration: any;
Copy link
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
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


@DtoAttr()
public constraints?: ConstraintDto;
@DtoAttr() public constraints?: ConstraintDto;
Copy link
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
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

@@ -7,6 +7,7 @@ import { NotificationService } from "app/components/base/notifications";
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
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