atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keval Bhatt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-2039) Unable to edit date value from UI when entity definition is POSTed without value for date attribute.
Date Fri, 22 Sep 2017 13:24:00 GMT

    [ https://issues.apache.org/jira/browse/ATLAS-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16176405#comment-16176405
] 

Keval Bhatt commented on ATLAS-2039:
------------------------------------

Thanks [~nixonrodrigues] for review.

Commit.
Master: http://git-wip-us.apache.org/repos/asf/atlas/commit/f90cca9d
brach-0.8:  http://git-wip-us.apache.org/repos/asf/atlas/commit/23ae0d0c

> Unable to edit date value from UI when entity definition is POSTed without value for
date attribute.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-2039
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2039
>             Project: Atlas
>          Issue Type: Bug
>          Components: atlas-webui
>    Affects Versions: 0.8-incubating, 0.9-incubating, 0.8.1-incubating
>            Reporter: Sharmadha Sainath
>            Assignee: pratik pandey
>         Attachments: ATLAS-2039.patch, Invalid date picker.png
>
>
> 1. Created hdfs_path entity by POSTing the following definition to /api/atlas/v2/entity
> {code}
> {
>    "referredEntities":{  },
>    "entity":{
>       "typeName":"hdfs_path",
>       "attributes":{
>          "qualifiedName":"dir2",
>          "path":"/user2/dir2",
>          "name":"dir2",
>          "createTime":1502087347000
>       },
>       "guid":"-1",
>       "status":"ACTIVE",
>       "createdBy":"admin",
>       "updatedBy":"admin",
>       "createTime":1502365775921,
>       "updateTime":1502365834237,
>       "version":0
>    }
> }
> {code}
> Atlas' hdfs model has createTime and modifiedTime attributes of type date.
> In the definition above , createTime is specified while POSTing whereas modifiedTime
is not specified.
> After POSTing the definition , UI shows "Thu Jan 01 1970 05:30:00 GMT+0530 (IST)" for
modifiedTime. When trying to edit the modifiedTime via UI , it shows "Invalid Date". All the
entries in the date picker are "NaN". Whereas ,createTime is editable.
> Attached the screenshot.
> GET entity definition of the POSTed hdfs_path entity :
> {code}
> {
> referredEntities: { },
> entity: {
> typeName: "hdfs_path",
> attributes: {
> owner: null,
> modifiedTime: 0,
> isFile: false,
> numberOfReplicas: 0,
> qualifiedName: "dir2",
> description: null,
> extendedAttributes: null,
> path: "/user2/dir2",
> posixPermissions: null,
> createTime: 1502087347000,
> fileSize: 0,
> clusterName: null,
> name: "dir2",
> isSymlink: false,
> group: null
> },
> guid: "1e684adf-60a6-4008-80b6-d2b0b1897403",
> status: "ACTIVE",
> createdBy: "admin",
> updatedBy: "admin",
> createTime: 1502366891151,
> updateTime: 1502366891151,
> version: 0,
> classifications: [ ]
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message