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

Add org.pgadmin.pgadmin4 #5105

Open
wants to merge 1 commit into
base: new-pr
Choose a base branch
from

Conversation

razzeee
Copy link
Member

@razzeee razzeee commented Mar 30, 2024

This is pgadmin4 the management utility for postgresql - I'm not involved with upstream at all.

There is pgadmin-org/pgadmin4#4378

Please confirm your submission meets all the criteria

  • Please describe your application briefly.
  • I have read the App Requirements and App Maintenance pages.
  • My pull request follows the instructions at App Submission.
  • I have built and tested the submission locally.
  • I am using only the minimal set of permissions. (If not, please explain each non-standard permission.)
  • All assets referenced in the manifest are redistributable by any party. If not, the unredistributable parts are using an extra-data source type.
  • I am an author/developer/upstream contributor of the project. If not, I contacted upstream developers about submitting their software to Flathub. Link: PgAdmin4 for Flatpak (RM #6523) pgadmin-org/pgadmin4#4378
  • The domain used for the application ID is controlled by the application developers either directly or through the code hosting (e.g. GitHub, GitLab, SourceForge, etc.). The application id guidelines are followed.
  • Any additional patches or files have been submitted to the upstream projects concerned. (If not, explain why.)

Comment on lines +116 to +117
url: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy/dists/pgadmin4/main/binary-amd64/pgadmin4-server_8.4_amd64.deb
dest-filename: pgadmin-server.deb
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this and below not being built from source?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can metainfo be submitted upstream?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can ask I guess

Copy link
Member Author

Choose a reason for hiding this comment

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

Created pgadmin-org/pgadmin4#7333 a week ago

Copy link
Member Author

Choose a reason for hiding this comment

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

Upstream does not want metainfo right now pgadmin-org/pgadmin4#7359 (comment)

@bbhtt bbhtt added the awaiting-changes Pull request waiting for changes from author label Mar 30, 2024
- tar -xf data.tar.zst
- rm -rf usr/pgadmin4/venv
- cp -r usr/* /app/
- sed -i "233 i DATA_DIR = os.environ['XDG_CONFIG_HOME']" /app/pgadmin4/web/config.py
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't there a better way than sed?

Copy link
Member Author

Choose a reason for hiding this comment

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

This would be much better I think pgadmin-org/pgadmin4#7359

I'm not sure if the other sed command could be removed, if we place the folders differently @faveoled might know.

Copy link
Contributor

Choose a reason for hiding this comment

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

patches are always better. because patches can fail. while sed will just move on silently.

Copy link

Choose a reason for hiding this comment

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

should work without sed after PR approval

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess my question was more along the lines of, can we change the folder structure so that we don't need, this at all:

- sed -i "43 i pgadminFile = '/app/pgadmin4/web/pgAdmin4.py'" ${FLATPAK_DEST}/pgadmin4/bin/src/js/pgadmin.js

As the default is

let pgadminFile = '../web/pgAdmin4.py';

I'm also now wondering why we don't need to patch

let configFile = '../web/config.py';

Copy link

Choose a reason for hiding this comment

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

not sure about that

@razzeee
Copy link
Member Author

razzeee commented May 29, 2024

Upstream does not want the metainfo file for now pgadmin-org/pgadmin4#7359 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-changes Pull request waiting for changes from author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants