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

@aliases Endpoint #1398

Merged
merged 47 commits into from
Sep 13, 2022
Merged

@aliases Endpoint #1398

merged 47 commits into from
Sep 13, 2022

Conversation

Petchesi-Iulian
Copy link
Contributor

@Petchesi-Iulian Petchesi-Iulian commented May 4, 2022

For #1393

@mister-roboto
Copy link

@Petchesi-Iulian thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@netlify
Copy link

netlify bot commented May 4, 2022

Deploy Preview for plone-restapi ready!

Name Link
🔨 Latest commit 485184d
🔍 Latest deploy log https://app.netlify.com/sites/plone-restapi/deploys/63163929bf3c410009da06e7
😎 Deploy Preview https://deploy-preview-1398--plone-restapi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@avoinea avoinea marked this pull request as draft May 4, 2022 13:42
@Petchesi-Iulian
Copy link
Contributor Author

@jenkins-plone-org please run jobs

@Petchesi-Iulian
Copy link
Contributor Author

@jenkins-plone-org please run jobs

@Petchesi-Iulian Petchesi-Iulian self-assigned this May 5, 2022
* Initial commit.

* Added GET root endpoint.

* Added @Aliases root POST

* Refs #1393 - Add @Aliases endpoint docs

* Flake8 & delete endpoint

* Black

Co-authored-by: Alin Voinea <[email protected]>
@Petchesi-Iulian
Copy link
Contributor Author

@jenkins-plone-org please run jobs

self.request.response.setStatus(201)

self.request.form["b_start"] = "0"
self.request.form["b_size"] = "1000000"
Copy link
Member

Choose a reason for hiding this comment

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

I am wondering if we shouldn't go the extra mile of implementing batching here. I can imagine that the number of redirects can become quite significant even on mid-size websites.

Copy link
Member

Choose a reason for hiding this comment

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

@tisto Do you suggest to set the default b_size to 50?

@fredvd
Copy link
Member

fredvd commented Jun 7, 2022

@jenkins-plone-org please run jobs

@avoinea
Copy link
Member

avoinea commented Jun 14, 2022

@fredvd Are the failing jenkins test still not-related to this PR or it's a real issue?

@avoinea
Copy link
Member

avoinea commented Jun 14, 2022

@jenkins-plone-org please run jobs

@fredvd
Copy link
Member

fredvd commented Jun 14, 2022

Are the failing jenkins test still not-related to this PR or it's a real issue?

@avoinea These are not related to this PR, there are still a few flakey robot tests left on plone.schema editor and the generic Fields robot tests that fail occasionally. Those are also failing in other tests.

I was fumbling around a bit to check the failures/success for this specific PR on the Pull request jobs on jenkins, just learned you can paste the PR URL in the filter on the PR job page to see them:

pr filter on url

@fredvd
Copy link
Member

fredvd commented Jun 15, 2022

@avoinea The robot tests are now zero, but other 'normal' tests fail.

https://jenkins.plone.org/job/pull-request-6.0-3.8/1499/

@Petchesi-Iulian
Copy link
Contributor Author

@jenkins-plone-org please run jobs

@Petchesi-Iulian
Copy link
Contributor Author

@jenkins-plone-org please run jobs

@rohnsha0 rohnsha0 enabled auto-merge August 16, 2022 02:47
@Petchesi-Iulian
Copy link
Contributor Author

@jenkins-plone-org please run jobs

@avoinea
Copy link
Member

avoinea commented Aug 30, 2022

@jenkins-plone-org please run jobs

@rohnsha0 rohnsha0 merged commit cb1dde1 into master Sep 13, 2022
@rohnsha0 rohnsha0 deleted the alias_controlpanel branch September 13, 2022 12:32
@avoinea avoinea requested a review from tisto September 13, 2022 12:32
@tisto
Copy link
Member

tisto commented Jun 14, 2024

@Petchesi-Iulian @avoinea just wondering. The current @Aliases endpoint does not allow filtering by aliases that have been added manually or automatically, is that correct?

@avoinea
Copy link
Member

avoinea commented Jun 14, 2024

@tisto Yes, I think you're right. There is no way to filter them by the manual criteria 🤔

@tisto
Copy link
Member

tisto commented Jun 15, 2024

@avoinea thanks for the feedback! I created an issue for this:

#1791

I also noticed that we do not have any way to filter for a date range. I also created a ticket for this:

#1792

We should also add the functionality to upload/download aliases as CSV file:

#1793

Once we have the REST API endpoints in place, we could enhance the Volto URL control panel to expose this new functionality.

Are you folks interested in those functionalities? We (at kitconcept) are currently working with the ClassicUI controlpanel but this is not a long-term solution. Therefore I'd love to see if we would catch up with Volto.

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.

6 participants