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

[DE-Migration] LPS-125543 Some fields have maps as values #118

Closed

Conversation

rodrigopaulino
Copy link

@liferay-continuous-integration
Copy link
Collaborator

To conserve resources, the PR Tester does not automatically run for every pull.

If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed.

If your pull was never tested, comment "ci:test" to run the PR Tester for this pull.

@rodrigopaulino
Copy link
Author

ci:test:sf

@rodrigopaulino
Copy link
Author

ci:test:relevant

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 33 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: d04f890cc2894e1402c65e958e6d4ec70c8dfece

Sender Branch:

Branch Name: LPS-125543
Branch GIT ID: 867df26a6fd51c67c73ef923af89ea540acbb774

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

Copy link

@jeyvison jeyvison left a comment

Choose a reason for hiding this comment

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

@rodrigopaulino
Copy link
Author

Hi @rodrigopaulino!

Can you please sort these? :

cb3b534#diff-b41d54bd1fe8c9e86e51af8165fcce698d63c3b3d7b40b7f267a9bc866e2aa99R172-R178

cb3b534#diff-4b2de1d0236005170fc53069bb5bf9650f04d657b44acd73ca4d7033feb508fcR52-R54

cb3b534#diff-21e838073ea4f97d5e50aba388a68f45014bef5338f48736aca387111d565254R73-R77

Also i think the if you introduced falls in the same case that i mentioned here to @victorg1991 .

Looks like you're trying to fix similar problems?

Hey, @jeyvison. I can't sort those. It was the sourceFormatter who did it.
In regards to your comment to Victor's PR, we can't treat the Map objects in the else clause because their string values are not proper serialized JSON. It will cause problems with parsing. Also, what Victor is doing is basically the same thing as I am with a different approach, but I'm not sure which one of those will perform better. ;)

@jeyvison
Copy link

jeyvison commented Jan 7, 2021

Hey, @jeyvison. I can't sort those. It was the sourceFormatter who did it.

Got it.

In regards to your comment to Victor's PR, we can't treat the Map objects in the else clause because their string values are not proper serialized JSON. It will cause problems with parsing. Also, what Victor is doing is basically the same thing as I am with a different approach, but I'm not sure which one of those will perform better. ;)

Humm. understood. But we don't need the else anymore right? Or we dont need this if. Since we are considering that everything that falls under else is a Map we can just move this logic to there. Am i right?

@rodrigopaulino
Copy link
Author

rodrigopaulino commented Jan 7, 2021

Humm. understood. But we don't need the else anymore right? Or we dont need this if. Since we are considering that everything that falls under else is a Map we can just move this logic to there. Am i right?

I see your question. I don't know that answer. Is every possible value an Array of Objects or a Map? If yes, we can sure replace the else block with this new code.

Edit: Oh! I went there again and saw the casting for Map<String, ?>. Sure, sure. We can avoid the "else if". Should I send this again or will you keep Victor's PR? Let me know either way. ;)

Edit 2: @jeyvison, actually I can't guarantee by reading that interface that every value.getValue() will be a Map if not an array of Objects. You see, the else block casts the value itself, not the "value of the value". Please validate my answer here. I'm starting to get confused 😅

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:stable - 9 out of 9 jobs passed

❌ ci:test:relevant - 23 out of 26 jobs passed in 3 hours 2 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: d04f890cc2894e1402c65e958e6d4ec70c8dfece

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 15218ef33680a1fe233ea812e8d097cfcb0feb42

ci:test:stable - 9 out of 9 jobs PASSED
9 Successful Jobs:
ci:test:relevant - 23 out of 26 jobs PASSED
23 Successful Jobs:
For more details click here.

Failures unique to this pull:


Failures in common with acceptance upstream results at d04f890:

@jeyvison
Copy link

jeyvison commented Jan 7, 2021

@rodrigopaulino You're completely right!

@victorg1991 Can you check if this PR fix your LPS? If it does i think i'll foward this one.

Thanks a lot to you both!

@liferay-continuous-integration
Copy link
Collaborator

@victorg1991
Copy link

Sure @jeyvison You can send this one, it is almost the same code as mine. In my pr another bug was also solved so I'd create another lps for that and sent it separately

Thanks!

@victorg1991
Copy link

victorg1991 commented Jan 8, 2021

I've resent this pr again here: #121 and added a commit as the other commit depended on this

@jeyvison
Copy link

jeyvison commented Jan 8, 2021

Awesome! Thanks a lot @victorg1991 !

@jeyvison
Copy link

jeyvison commented Jan 8, 2021

ci:forward

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:relevant
  •     ci:test:sf

The pull request will automatically be forwarded to the user brianchandotcom if the following test suites pass:

  •     ci:test:relevant
  •     ci:test:sf
  •     ci:test:stable

@jeyvison jeyvison self-requested a review January 8, 2021 12:57
@liferay-continuous-integration
Copy link
Collaborator

Skipping previously passed test suites:
ci:test:sf

Copy link

@jeyvison jeyvison left a comment

Choose a reason for hiding this comment

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

LGTM!

@jeyvison
Copy link

jeyvison commented Jan 8, 2021

Hi @rodrigopaulino , i'm forwarding victor's PR instead because he's is fixing his case on top of your PR and the tests are already ok there

@liferay-continuous-integration
Copy link
Collaborator

Build started.

Jenkins is currently running tests.

Base Branch:

Branch Name: master

Job Summary:

Job Link: test-portal-acceptance-pullrequest(master)

For more details click here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants