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

Internal/content preview #691

Merged
merged 13 commits into from
Aug 7, 2024
Merged

Internal/content preview #691

merged 13 commits into from
Aug 7, 2024

Conversation

Paurikova2
Copy link
Collaborator

@Paurikova2 Paurikova2 commented Jul 9, 2024

Phases MP MM MB MR JM Total
ETA 0 0 0 0 0 0
Developing 8 0 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem description

Notes: There is a different order.
image
image

@Paurikova2 Paurikova2 linked an issue Jul 10, 2024 that may be closed by this pull request
3 tasks

/**
* Database entity representation of the previewcontent table.
* Database entity representation of class FileInfo.
Copy link
Collaborator

Choose a reason for hiding this comment

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

So this is a database entity representation of what?

ALTER TABLE eperson ADD can_edit_submission_metadata BOOL;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add this changes into a new file called e.g., V7.6.1._2024.08.05_Added_Preview_Tables.sql

previewcontent_id integer NOT NULL,
bitstream_id uuid NOT NULL,
name varchar(256),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is 256 enough?

@@ -488,3 +488,84 @@ ALTER COLUMN element TYPE character varying(128);
ALTER TABLE eperson ADD welcome_info varchar(30);

ALTER TABLE eperson ADD can_edit_submission_metadata BOOL;

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please change the name of the file

@@ -243,10 +308,10 @@ private List<FileInfo> processInputStreamToFilePreview(Context context, Bitstrea
fileInfos.add(new FileInfo(data, false));
} else {
String data = "";
if (bitstream.getFormat(context).getExtensions().contains("zip")) {
if (bitstream.getFormat(context).getMIMEType().equals("application/zip")) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I remember, that we should check it following the getExtensions because of some reason I do not remember. Please can we check it like that again?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't understand your comment....

try {
previewContent = previewContentService.find(context, integer);
} catch (SQLException e) {
throw new RuntimeException(e.getMessage(), e);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add some log error

@@ -1,4 +1,5 @@
## File for changes to dspace.cfg - separated from original configuration file to see what we changed
## File for changes to dspace.cfg - separated from original configuration file to see what we changed
Copy link
Collaborator

Choose a reason for hiding this comment

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

You've added the same comment twice

@milanmajchrak milanmajchrak merged commit 35e3587 into dtq-dev Aug 7, 2024
10 checks passed
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.

Content preview - S3
2 participants