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

added boundary data mapper #146

Closed
wants to merge 4 commits into from
Closed

Conversation

naveen-egov
Copy link
Collaborator

No description provided.

@naveen-egov naveen-egov requested a review from ajilo-eGov March 30, 2023 04:49
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you undo this file rename as well please?

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you undo this file rename as well please?

@@ -29,26 +29,23 @@ class BoundaryBloc extends Bloc<BoundaryEvent, BoundaryState> {
List<BoundaryModel> boundaryList = await boundaryRepository.search(
BoundarySearchModel(code: event.code),
);
boundaryList.forEach((ele) => print(ele.code));
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this print statement.

Suggested change
boundaryList.forEach((ele) => print(ele.code));

@@ -47,9 +51,14 @@ class AuthenticatedPageWrapperState extends State<AuthenticatedPageWrapper> {
(boundaryList, boundaryMapperList, selectedBoundary) {
if (boundaryList.isEmpty) return;

if (selectedBoundary == null) {
if (selectedBoundary.isEmpty) {
setState(() {
visiable = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

typo in visible

.add(BoundaryEvent
.select(
selectedBoundary:
selectedBoundaryValuehierarchy,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
selectedBoundaryValuehierarchy,
selectedBoundaryValueHierarchy,

Typo

selectedBoundaryValuehierarchy,
));
setState(() {
visiable = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

@@ -181,11 +181,11 @@ class _LoginPageState extends LocalizedState<LoginPage> {

FormGroup buildForm() => fb.group(<String, Object>{
_userId: FormControl<String>(
value: 'distributorUlongue',
value: 'wmgrDashboardAngonia',
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove hardcoded credentials

Suggested change
value: 'wmgrDashboardAngonia',

validators: [Validators.required],
),
_password: FormControl<String>(
value: 'eGov@1234',
value: 'eGov@1234',
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove hardcoded credentials

Suggested change
value: 'eGov@1234',

@@ -37,7 +37,7 @@ extension ContextUtilityExtensions on BuildContext {
throw AppException('No project is selected');
}

return selectedBoundary;
return selectedBoundary.where((e) => e != '').toList().last;
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't call last without checking if the list is empty. This will break

@ajilo-eGov
Copy link
Contributor

Will be merged as part of #150

@ajilo-eGov ajilo-eGov closed this Apr 17, 2023
@naveen-egov naveen-egov deleted the hlm-2236-boundary-data-mapper branch October 21, 2024 06:32
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.

2 participants