Skip to content

OBGM-453 / OBGM-411 Unable to go forward/backward in outbound returns and product searches not working #4090

Merged
awalkowiak merged 3 commits intofeature/upgrade-to-grails-3.3.10from
OBGM-453
Jun 7, 2023
Merged

OBGM-453 / OBGM-411 Unable to go forward/backward in outbound returns and product searches not working #4090
awalkowiak merged 3 commits intofeature/upgrade-to-grails-3.3.10from
OBGM-453

Conversation

@alannadolny
Copy link
Collaborator

No description provided.

@alannadolny alannadolny self-assigned this Jun 6, 2023
@alannadolny alannadolny changed the title OBGM-453 / OBGM-411Unable to go forward/backward in outbound returns and product searches not working OBGM-453 / OBGM-411 Unable to go forward/backward in outbound returns and product searches not working Jun 6, 2023
@awalkowiak awalkowiak force-pushed the feature/upgrade-to-grails-3.3.10 branch from 019c8a8 to 7e46d89 Compare June 6, 2023 14:56
@jmiranda jmiranda added the warn: do not merge Marks a pull request that is not yet ready to be merged label Jun 7, 2023
@jmiranda
Copy link
Member

jmiranda commented Jun 7, 2023

This one needs to be rebased.

@alannadolny alannadolny removed the warn: do not merge Marks a pull request that is not yet ready to be merged label Jun 7, 2023
@alannadolny alannadolny requested a review from jmiranda June 7, 2023 08:52

def publishRefreshEvent = {
Holders.grailsApplication.mainContext.publishEvent(new RefreshProductAvailabilityEvent(this))
applicationEventPublisher?.publishEvent(new RefreshProductAvailabilityEvent(this))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this refactor was not needed. Was it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are right. Previously, without those changes, I got an error about it. For now, I reverted those changes and it works fine, thanks.

import NotificationType from 'consts/notificationTypes';

const justRejectRequestError = error => Promise.reject(error);
const justRejectRequestError = (error) => Promise.reject(error);
Copy link
Collaborator

Choose a reason for hiding this comment

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

seems like ESLint rules have changed that he shouted for this? Or have you done it manually?

Copy link
Collaborator Author

@alannadolny alannadolny Jun 7, 2023

Choose a reason for hiding this comment

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

Yes, I used 'fix all' eslint problems when I was working on this file and it added those brackets.

createAlias('productSuppliers.manufacturer', 'psm', JoinType.LEFT_OUTER_JOIN)
createAlias('productSuppliers.supplier', 'pss', JoinType.LEFT_OUTER_JOIN)
createAlias('inventoryItems', 'ii', JoinType.LEFT_OUTER_JOIN)
createAlias('synonyms', 'syn', JoinType.LEFT_OUTER_JOIN)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change to synonym

return Promise.reject(error);
};

export const unflatten = (flattened) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is not parseResponse for this purpose?

@alannadolny alannadolny requested a review from awalkowiak June 7, 2023 14:57
@awalkowiak awalkowiak merged commit 2584bc2 into feature/upgrade-to-grails-3.3.10 Jun 7, 2023
@awalkowiak awalkowiak deleted the OBGM-453 branch June 7, 2023 15:14
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.

4 participants