Skip to content

ContentRepository.fetchImage() FileData not ImageData (FINERACT-1201)#1485

Merged
percyashu merged 2 commits intoapache:developfrom
vorburger:FINERACT-1201_ImageResizer-III
Nov 19, 2020
Merged

ContentRepository.fetchImage() FileData not ImageData (FINERACT-1201)#1485
percyashu merged 2 commits intoapache:developfrom
vorburger:FINERACT-1201_ImageResizer-III

Conversation

@vorburger
Copy link
Member

This is an extension of #1425 for FINERACT-1201.

@vorburger vorburger force-pushed the FINERACT-1201_ImageResizer-III branch from 3b28e93 to 6a10a5c Compare November 1, 2020 15:00
@vorburger vorburger marked this pull request as draft November 1, 2020 15:15
@vorburger
Copy link
Member Author

Changing to Draft, because this currently fails like this:

DocumentTest > downloadFile() FAILED
    expected: 2080155
    but was : -1
        at org.apache.fineract.integrationtests.newstyle.DocumentTest.downloadFile(DocumentTest.java:87)

This is due to the test still running against https://www.fineract.dev - I REALLY need #1465 here to change it to run against localhost.

But let's first get #1425 reviewed and merged already.

@vorburger
Copy link
Member Author

need #1465 here to change it to run against localhost. But let's first get #1425 reviewed and merged already.

I'll continue working on this after #1494 is merged.

@vorburger vorburger force-pushed the FINERACT-1201_ImageResizer-III branch 2 times, most recently from e4ecfb9 to c34d160 Compare November 12, 2020 20:35
This is more consistent with fetchFile(), and allows to re-use code.
@vorburger vorburger force-pushed the FINERACT-1201_ImageResizer-III branch from c34d160 to 7ee5a1e Compare November 12, 2020 21:05
@vorburger vorburger closed this Nov 16, 2020
@vorburger vorburger reopened this Nov 16, 2020
@vorburger vorburger marked this pull request as ready for review November 17, 2020 20:59
@vorburger
Copy link
Member Author

@ptuomola @vidakovic @percyashu @xurror @fynmanoj @avikganguly01 @vincent-fuchs @awasum any of you willing to review this, for FINERACT-1201? Once this is in, a few more such refactoring may be proposed, and ultimately I will then work on FINERACT-955 some day.

I'm reasonable confident that this won't break break any 🥰 the documents and images features, because in FINERACT-1218 I have contributed new test coverage for all this stuff (and since FINERACT-1209 those new tests DO actually run in our CI!), but of course careful human code review is always still a good idea... 😈

Copy link
Contributor

@percyashu percyashu left a comment

Choose a reason for hiding this comment

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

LGTM!

@percyashu percyashu merged commit 6c853a6 into apache:develop Nov 19, 2020
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