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

[default-content-types] Priority and Status field declarations #32

Closed
B3zo0 opened this issue May 20, 2018 · 0 comments

Comments

@B3zo0
Copy link
Member

commented May 20, 2018

This is the response from a content update:

    "Name": "Duis commodo nunc",
    "StartDate": "0001-01-01T00:00:00",
    "DueDate": "2015-11-30T01:00:00Z",
    "AssignedTo": {
      "__deferred": {
        "uri": "/odata.svc/workspaces/Project/budapestprojectworkspace/Tasks('Duis commodo nunc')/AssignedTo"
      }
    },
    "Priority": [
      "1"
    ],
    "Status": [
      "active"
    ]

Priority and Status fields are arrays. But in the declaration file those are enums.

export declare class Task extends ListItem {
    StartDate?: string;
    DueDate?: string;
    AssignedTo?: ContentListReferenceField<User>;
    Priority?: Priority;
    Status?: Status;
    TaskCompletion?: number;
    RemainingDays?: number;
    DueText?: string;
    DueCssClass?: string;
}

@gallayl gallayl transferred this issue from SenseNet/sn-default-content-types Dec 11, 2018

@gallayl gallayl changed the title Priority and Status field declarations [default-content-types] Priority and Status field declarations Dec 11, 2018

gallayl added a commit that referenced this issue Jan 9, 2019

gallayl pushed a commit that referenced this issue Jan 9, 2019

Merge feat/google auth to master (#131)
* Merge master into develop branch (#35)

* Feature/basic pages and layout (#8)

* chore(dependencies): Update dependencies

* chore(package): removed sn-client-cli from dependencies

* feat: Add basic layout and routes

Basic routes are added for login, registration and the dashboard. For choosing between login and
registration a tabstrip is added. If theres no authenticated user, she will be redirected to the
login page

* test: Fix test imports

* fix: Add missing dependency

* chore: Fix dependencies

* Merge features/dms login (#10)

* chore(dependencies): Update dependencies

* chore(package): removed sn-client-cli from dependencies

* feat: Add basic layout and routes

Basic routes are added for login, registration and the dashboard. For choosing between login and
registration a tabstrip is added. If theres no authenticated user, she will be redirected to the
login page

* test: Fix test imports

* fix: Add missing dependency

* chore: Fix dependencies

* feat(Login): Add login form

* chore: Remove package-lock.json

* chore: Add package-lock.json to the .gitignore

* test: Fix tests

* Feature/repository url (#12)

* build(repository URL): Resolve URL from REACT_APP_SERVICE_URL environment variable

* refactor(create-react-app, repository): Ejected create-react-app, removed uglify from build, added f

* fix(package): changed tsConfigFile from absolute URL to relative

* fix(package): fixed json syntax

---------

Ejected create-react-app in order to customize build script
Removed UglifyJs from build script
RepositoryUrl will be resolved from REACT_APP_SERVICE_URL environment variable, falls back to https://sn-local/

* Features/dms registration (#14)

* feat(Add registration form):

* feat: Add registration related string resources

* fix(Login): Fix login button onclick

* feat: Email validation on client-side and format hint in the placeholder

* feat(Registration): Add password format check

Password needs to be longer than 8 characters, needs to contain numbers, capitals and special
characters

* feat(Registration): Add password confirmation

* fix(Registration): Improve password validation

* feat(Registration): Improve registration process

Registration Actions, Epic and Reducers are added

* chore(privacypolicy): Add cookieconsent

Add cookieconsent to inform users about our privacy policy. Keep in mind, that the url of the
privacy policy content should be changed after we have one for the mvps

* feat(Registration): Add recaptcha

* docs(Readme): Add a short info about the enviroment variables

* fix(package): update css-loader to version 0.28.6 (#22)

* fix(package): update css-loader to version 0.28.7 (#23)

* [KFI]DMS MVP User dashboard (#24)

* [KFI]chore(commitizen): Change cz-changelog to a sensenet KFI specific one

* [KFI]feat(Dashboard): Add app header

App header with basic stuff like quicksearch, loggedin users data, logo, menu, etc.

* [KFI]feat(Dashboard): Add static floating action button

* [KFI]feat(HeaderLogo): Add a white sn logo

* [KFI]feat(UserPanel): Add avatar of the current user

* [KFI]fix: Fix dependencies

* [KFI]fix: Fix dependencies

* [KFI]fix: Fix material-ui version

* [KFI]fix(Routing): Change BrowserRouter to HashRouter

* [KFI]fix(Routes): Fix routes

* fix(package): update typescript to version 2.5.2 (#25)

* fix(package): update react-error-overlay to version 2.0.1 (#27)

* fix(package): update react-dev-utils to version 4.0.1 (#28)

* fix(package): update jest to version 21.0.0 (#29)

* fix(package): update ts-jest to version 21.0.0 (#30)

* fix(package): update autoprefixer to version 7.1.4 (#32)

* Fix/reg and login (#33)

* [KFI]chore: Remove redux-loggers typing file as a dependency

* [KFI]feat(registration): Reduce password strength

Password should be now at least three character long

* [KFI]fix(registration): Fix redirect after registration

* Feature/logout (#34)

* [KFI]feat(Logout): Add user logout functionality

* [KFI]refactor(Actions): Shorten actionnames to login and registration

* sn-client-js update (#114)

* [KFI]fix(project): sn-client-js dependencies

* [KFI]chore(package): updated sn-client-js to 3.0.0-development.2

* [KFI]fix(ReCaptcha): Fix recaptcha

* Merge feat/upload to develop (#121)

* [KFI]fix(Authentication): Fix loginstate by the new enum format of authentication.loginstate

* [KFI]test: Fix tests based on the changes in sn-client-js

* [KFI]refactor(Selection): Change selection related stuff based on the changes in sn-redux

* [KFI]feat(Actions): Add delete batch functionality to the actionlist

* [KFI]feat(BatchActions): Bind delete- copy- and movebatch actions to the appropriate key and dragand

* [KFI]fix(Registration): Fix logo size on registration interface

* [KFI]feat(Upload): Add upload functionality to the main actionmenu

* [KFI]feat(GoogleAuth): Add basic google auth stuff

* [KFI]feat(FontIcons): Add fontawesome component plus related font and css files

* [KFI]feat(GoogleAuth): Add 'Sign in with Google' button with its three states

* [KFI]feat(GoogleAuth): Add 'Sign in with Google' button to the login and registration surface

* [KFI]fix: Fix update related stuff

* [KFI]fix: Fix upload and actions

B3zo0 added a commit that referenced this issue Jul 26, 2019

[KFI]fix(default-content-types): enums array
Enum values are coming back as enum arrays from the server

fixes #32

@herflis herflis added this to the Sprint 190 milestone Jul 30, 2019

@B3zo0 B3zo0 self-assigned this Jul 30, 2019

@herflis herflis modified the milestones: Sprint 190, Sprint 191 Aug 7, 2019

@herflis herflis closed this in 3d35e6b Aug 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.