Bug #19044

IAM > User Profile

Added by Low Dylan 11 months ago. Updated 8 months ago.

Status:ClosedStart date:01 December 2023
Priority:NormalDue date:
Assignee:chok yee fan% Done:

100%

Category:-Spent time:-
Target version:-

Description

user profile - 50% UI with integrated BE

What is the issue?

Screenshot 2023-12-01 at 4.00.17 PM.png (323 KB) chok yee fan, 01 December 2023 04:00 PM

Screenshot 2023-12-01 at 4.01.41 PM.png (78.4 KB) chok yee fan, 01 December 2023 04:01 PM

departmentSearchAction.png (67.8 KB) Tan Jiau Yan, 19 December 2023 11:39 AM

departmentSearchActionPreview.png (41.3 KB) Tan Jiau Yan, 19 December 2023 11:41 AM

departmentSearchActionPayload.png (12.7 KB) Tan Jiau Yan, 19 December 2023 11:42 AM

Screenshot 2024-01-29 115817.png (144 KB) Tan Jiau Yan, 29 January 2024 12:03 PM

History

#1 Updated by chok yee fan 11 months ago

Current not sure what ws to be call for the tab screen "System Information".

#2 Updated by chok yee fan 11 months ago

Department ws not ready yet, it should depends on Organisation selected item.

#3 Updated by chok yee fan 11 months ago

update not being save, its return the old data.

ws http://localhost:3006/api/userProfileWs/updateAction

request

{"userProfileEntity":{"userId":"brucebanner1","secondaryUserId":null,"catId":1,"orgId":1,"departmentId":1,"fullName":"Bruce Banner2","personIdTypeId":null,"personIdNumber":null,"email":"","mobileNumber":"+60127654321","effectiveDt":"2023-10-24T08:00:00.000+08:00","expiryDt":null,"authenticationType":null,"status":"A","createDt":"2023-11-17T11:26:00.870+08:00","createBy":"sysuser","modifyDt":"","modifyBy":"","userCategoryEntity":{"catId":1,"catName":"System Owner","concurrentLogin":null,"autoLogOff":null,"status":"A","createDt":"2023-10-26T00:45:09.201+08:00","createBy":"mleb_dba","modifyDt":null,"modifyBy":null,"statusLabel":null},"organisationEntity":{"orgId":1,"parentOrgId":0,"userCatId":1,"approvedBy":null,"approvedDt":null,"orgTypeId":1,"countryId":null,"regAddrCountryId":null,"crspdAddrCountryId":null,"contactEmail":null,"contactFax":null,"contactHandPhone":null,"contactName":null,"contactOtherPhone":null,"latitude":null,"longitude":null,"termConditionName":null,"termConditionData":null,"createBy":"sysuser","createDt":"2023-11-16T17:22:31.247+08:00","crspdAddrCity":null,"crspdAddrPostcode":null,"crspdAddrStateId":null,"crspdAddrStreet1":null,"crspdAddrStreet2":null,"crspdAddrStreet3":null,"modifyBy":null,"modifyDt":null,"orgCode":"testOrgCode","orgName":"testOrgName","regAddrCity":null,"regAddrPostcode":null,"regAddrStateId":null,"regAddrStreet1":null,"regAddrStreet2":null,"regAddrStreet3":null,"regNumber":null,"status":"A","organisationTypeEntity":null,"countryEntity":null,"regAddrCountryEntity":null,"crspdAddrCountryEntity":null,"regAddrStateEntity":null,"crspdAddrStateEntity":null,"userCategoryEntity":{"catId":1,"catName":"System Owner","concurrentLogin":null,"autoLogOff":null,"status":"A","createDt":"2023-10-26T00:45:09.201+08:00","createBy":"mleb_dba","modifyDt":null,"modifyBy":null,"statusLabel":null},"statusLabel":null},"idTypeReferenceEntity":null,"userSystemEntity":null,"statusLabel":"Active"}}

#4 Updated by Low Dylan 11 months ago

  • Status changed from New to Assigned
  • Assignee changed from Low Dylan to David Wong

#5 Updated by David Wong 11 months ago

  • Status changed from Assigned to In Progress

#6 Updated by David Wong 11 months ago

  • Status changed from In Progress to Resolved
  • Assignee changed from David Wong to chok yee fan
  • % Done changed from 0 to 100

Organisation field value on change call web service:

http://localhost:8081/api/userProfileWs/departmentSearchAction

Request JSON:

{
    "sessionID": "test",
    "userProfileBean" : {
        "orgId": 1
    }
}

Response JSON:

"departmentSelectItems": [],

#7 Updated by Low Dylan 11 months ago

Fixed can not save and added User id validation:

{
    "responseTimestamp": "2023-12-08T16:00:50.840+08:00",
    "headerBean": {
        "serviceID": "FUNC_SAVE_USER_PROFILE",
        "bddispatchURL": null,
        "requestInfo": null,
        "bdvmurl": null
    },
    "responseCode": "ERR_200000",
    "responseMessage": "Online form validation failed.",
    "sessionID": "test",
    "tranxID": "77097604",
    "bdResponseCode": null,
    "bdResponseMessage": null,
    "userProfileBean": {
        "mandatoryFields": [
            "userId",
            "fullName",
            "effectiveDt",
            "catId",
            "orgId",
            "email",
            "mobileNumber",
            "personIdNumber",
            "status" 
        ],
        "infoMessages": [],
        "errorMessages": [
            "User ID value already exist.",
            "E-Mail value already exist." 
        ],
        "warnMessages": [],
        "userId": null,
        "userName": null,
        "status": null,
        "workflowStatus": null,
        "organisationName": null,
        "selected": false,
        "effectiveDate": null,
        "expiryDate": null,
        "email": null,
        "orgId": null
    },
    "userProfileEntity": {
        "userId": "TEST8",
        "secondaryUserId": null,
        "catId": 3,
        "orgId": 1,
        "departmentId": 1,
        "fullName": "tester",
        "personIdTypeId": 1,
        "personIdNumber": "23821029w80231",
        "email": "test8@email.com",
        "mobileNumber": "+60127654321",
        "effectiveDt": "2023-10-15T00:00:00.000+08:00",
        "expiryDt": null,
        "authenticationType": null,
        "status": "A",
        "createDt": null,
        "createBy": null,
        "modifyDt": null,
        "modifyBy": null,
        "userCategoryEntity": null,
        "organisationEntity": null,
        "idTypeReferenceEntity": null,
        "userSystemEntity": null,
        "statusLabel": null
    },
    "userCategorySelectItems": [
        {
            "key": 1,
            "value": "System Owner" 
        },
        {
            "key": 2,
            "value": "Partner" 
        },
        {
            "key": 3,
            "value": "Public" 
        },
        {
            "key": 4,
            "value": "Test" 
        }
    ],
    "organisationSelectItems": [
        {
            "key": 1,
            "value": "Org Test" 
        }
    ],
    "personIdTypeSelectItems": [
        {
            "key": 1,
            "value": "NRIC" 
        },
        {
            "key": 2,
            "value": "Passport" 
        }
    ],
    "departmentSelectItems": null,
    "statusSelectItems": [
        {
            "key": "A",
            "value": "Active" 
        },
        {
            "key": "D",
            "value": "Pending Deletion" 
        },
        {
            "key": "X",
            "value": "Inactive" 
        }
    ],
    "bdobject": null
}

Req:

{
    "sessionID": "test",
    "userProfileBean" : {

    },
    "userProfileEntity": {
        "userId": "a",
        "secondaryUserId": null,
        "catId": 3,
        "orgId": 1,
        "departmentId": 1,
        "fullName": "tester",
        "personIdTypeId": 1,
        "personIdNumber": "23821029w80231",
        "email": "a@email.com",
        "mobileNumber": "+60127654321",
        "effectiveDt": "2023-10-15",
        "expiryDt": null,
        "authenticationType": null,
        "status": "A",
        "createDt": null,
        "createBy": null,
        "modifyDt": null,
        "modifyBy": null,
        "userCategoryEntity": null,
        "organisationEntity": null,
        "idTypeReferenceEntity": null,
        "userSystemEntity": null
    }
}

Resp:

{
    "responseTimestamp": "2023-12-08T16:09:03.946+08:00",
    "headerBean": {
        "serviceID": "FUNC_SAVE_USER_PROFILE",
        "bddispatchURL": null,
        "requestInfo": null,
        "bdvmurl": null
    },
    "responseCode": "ERR_200007",
    "responseMessage": "Security policy not met.",
    "sessionID": "test",
    "tranxID": "76384425",
    "bdResponseCode": null,
    "bdResponseMessage": null,
    "userProfileBean": {
        "mandatoryFields": [
            "userId",
            "fullName",
            "effectiveDt",
            "catId",
            "orgId",
            "email",
            "mobileNumber",
            "personIdNumber",
            "status" 
        ],
        "infoMessages": [],
        "errorMessages": [
            "User ID value is invalid because doesnt met the length specified in security policy." 
        ],
        "warnMessages": [],
        "userId": null,
        "userName": null,
        "status": null,
        "workflowStatus": null,
        "organisationName": null,
        "selected": false,
        "effectiveDate": null,
        "expiryDate": null,
        "email": null,
        "orgId": null
    },
    "userProfileEntity": {
        "userId": "a",
        "secondaryUserId": null,
        "catId": 3,
        "orgId": 1,
        "departmentId": 1,
        "fullName": "tester",
        "personIdTypeId": 1,
        "personIdNumber": "23821029w80231",
        "email": "a@email.com",
        "mobileNumber": "+60127654321",
        "effectiveDt": "2023-10-15T00:00:00.000+08:00",
        "expiryDt": null,
        "authenticationType": null,
        "status": "A",
        "createDt": null,
        "createBy": null,
        "modifyDt": null,
        "modifyBy": null,
        "userCategoryEntity": null,
        "organisationEntity": null,
        "idTypeReferenceEntity": null,
        "userSystemEntity": null,
        "statusLabel": null
    },
    "userCategorySelectItems": [
        {
            "key": 1,
            "value": "System Owner" 
        },
        {
            "key": 2,
            "value": "Partner" 
        },
        {
            "key": 3,
            "value": "Public" 
        },
        {
            "key": 4,
            "value": "Test" 
        }
    ],
    "organisationSelectItems": [
        {
            "key": 1,
            "value": "Org Test" 
        }
    ],
    "personIdTypeSelectItems": [
        {
            "key": 1,
            "value": "NRIC" 
        },
        {
            "key": 2,
            "value": "Passport" 
        }
    ],
    "departmentSelectItems": null,
    "statusSelectItems": [
        {
            "key": "A",
            "value": "Active" 
        },
        {
            "key": "D",
            "value": "Pending Deletion" 
        },
        {
            "key": "X",
            "value": "Inactive" 
        }
    ],
    "bdobject": null
}

#8 Updated by chok yee fan 10 months ago

  • Assignee changed from chok yee fan to Tan Jiau Yan

update the bdiam try to call the updateAction and see

#9 Updated by Tan Jiau Yan 10 months ago

Jiauyan - departmentSelectItems always return empty when call the web service with orgId

http://localhost:8081/api/userProfileWs/departmentSearchAction

#10 Updated by Tan Jiau Yan 9 months ago

Issue :

When unsuccess updateAction , it display record successfully saved msg.

Expected :

When have the error, it should be showing error msg at the top.

#11 Updated by chok yee fan 9 months ago

  • Assignee changed from chok yee fan to Hazimi Muhammad

#12 Updated by Hazimi Muhammad 9 months ago

Got issue cannot stimulate to check the error due to cannot add new data.

#13 Updated by Hazimi Muhammad 9 months ago

  • Assignee changed from Hazimi Muhammad to chok yee fan

#14 Updated by Hazimi Muhammad 9 months ago

Scenario :
Click User Profile > Add

Issue :

When click Add, the data is missing due to not calling dataEntryForm WS

Expected :

Should call the dataEntryForm WS

#15 Updated by chok yee fan 9 months ago

  • Assignee changed from chok yee fan to Amirul Umar Pandai

#16 Updated by Amirul Umar Pandai 9 months ago

  • Assignee changed from Amirul Umar Pandai to Hazimi Muhammad

#17 Updated by Hazimi Muhammad 9 months ago

  • Assignee changed from Hazimi Muhammad to chok yee fan

Now can get the dataEntryForm WS. but i still cant access this module due to cannot add the Organization form (mandatory) due to issue on Organization profile module(No oOrganization data)

#18 Updated by Hazimi Muhammad 9 months ago

  • Status changed from Assigned to Feedback

#19 Updated by chok yee fan 9 months ago

  • Status changed from Feedback to Assigned
  • Assignee changed from chok yee fan to Hazimi Muhammad

chok: check the file null pointer

now should be able to add the org profile. after the bd_iam and try again

https://dev.silverlakemobility.com/gitlab/mleb-solution-domain/smesd100/mleb-iam/-/commit/3e6d0d7a520497baef703a9371d26df57276b74b

#20 Updated by Hazimi Muhammad 9 months ago

  • Status changed from Assigned to Feedback
  • Assignee changed from Hazimi Muhammad to chok yee fan

The breadcrumb are not collapse the accordion. The back function are not same behavior with cancel button

Issue :

When click User Profile > click search > select the data in the table > click breadcrumb > back to search page > the accordion are not collapse

Expected :

When click User Profile > click search > select the data in the table > click breadcrumb > back to search page > the accordion are should collapse

#21 Updated by chok yee fan 9 months ago

  • Assignee changed from chok yee fan to Nityanantan Nityanantan

#22 Updated by Nityanantan Nityanantan 9 months ago

  • Assignee changed from Nityanantan Nityanantan to Amirul Umar Pandai

#23 Updated by Amirul Umar Pandai 9 months ago

  • Assignee changed from Amirul Umar Pandai to Hazimi Muhammad

Fix included inside this commit alongside other modules (forgot to include in the commit title)


Bug #19687 - retain accordion state when navigating between search and form page (User Category)
Bug #19693 - retain accordion state when navigating between search and form page (Org profile, User role, Email config, Msg Template, etc.)

https://dev.silverlakemobility.com/gitlab/mleb-solution-domain/smesd100/mleb-iam/-/commit/9066fde2b894e72f6b2f9cf12b485594425c824d

#25 Updated by Hazimi Muhammad 9 months ago

  • Assignee changed from Hazimi Muhammad to chok yee fan

Checked for :

All the breadcrumb and cancel button when click will back to search page with collapse accordion.

When click User Profile > click search > select the data in the table > click breadcrumb > back to search page > the accordion are now should collapse for All module

#26 Updated by chok yee fan 8 months ago

  • Status changed from Feedback to Closed

use new redmine to trace

Also available in: Atom PDF