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

ISSUE-106b:API builder/controller re-roll for 1.4.0 #394

Merged
merged 45 commits into from
Apr 22, 2024
Merged

Conversation

DiegoPino
Copy link
Member

See #106 but this time robust, well done (sorry, I was a mess in 2021) and fully functional

This can't be merged without me finishing the latest quirks (Cache clearing + invalidation + reusing existing metadata controller like IIIF Content Search API does) + better config form validation. Also we need to provide by default the configs + views + templates so this can be used out of the box by users.

Will keep adding things this week (Dec 18-24 2023)

DiegoPino and others added 26 commits June 3, 2022 16:49
Entity Form still requires some work and a few extra options, but a good start to test APIs. Documentation need to follow and this can not be merged until that is a reality.
Only if a path type argument is passed this is needed. So this fixes it
Silly me
For now this allows us to filter against mimetypes
Any autocomplete element using this handler can add
#selection_settings' => [
      'filter' => [
        'mimetype' => 'application/xml'
      ]
    ],
Going to attempt now (after this)
1.- better mapping for views exposed filters
2.- Multiple Views so mapping can be against one or another
3.- Multiple Twig templates, mapped to arguments
4.- Validation and cleanup
And better logic.
- Also fixes the case where two different arguments map to the same Views exposed property but on one is empty deleting the one that was set. If one is set and present that one wins
…tons that trigger AJAX

I have repeated this to myself for the last 3 years and i always forget. I even have a sticky note
Given that Sets and Items have to be handled by different views we need to enable Multiple Views that can be modal based on enumeration properties.
I'm pretty sure i coded this for my birthday already but can't find it. Too many branches so here we go again
Might have to re-roll this later
More to come, this is just glue so far
Also, actually save the entity. Gosh Diego
@DiegoPino DiegoPino self-assigned this Dec 18, 2023
@DiegoPino DiegoPino added enhancement New feature or request future roadmap Things we would love to have but are no priority for version 1.0 metadata Meta(l) data labels Dec 18, 2023
@DiegoPino DiegoPino changed the title ISSUE-106b:API builder/controller re-roll for 1.3.0 ISSUE-106b:API builder/controller re-roll for 1.4.0 Mar 7, 2024
@DiegoPino DiegoPino changed the base branch from 1.3.0 to 1.4.0 March 7, 2024 15:52
…emplate

Not that i have done that... but a todo is basically futuristic/wishful coding @alliomeria
What? @alliomeria well, drupal always gives me all with a min of 5 when using an entity reference view (which we need). This trick of first building it
 $executable->build(); // this will generate the query we need first, then setting the limit once all the non sense drupal did was already generated and override my pages allows me then to set a limit (and an offset which i can now calculate on a ?page or whatever argument)
$executable->getQuery()->setLimit($limit);
And then i can execute.. which was previously the default
                    $executable->execute();
@alliomeria
Copy link
Contributor

Thank you for baking this into Archipelago, @DiegoPino! 🌟 Local testing going great so far, and will stay tuned for the refinements we discussed earlier today.

@DiegoPino
Copy link
Member Author

quizás, quizás we can close that ticket soon! Getting 4 years old anytime :) Thanks for testing and for the encouragement

@DiegoPino
Copy link
Member Author

@alliomeria do we need to provide an example/premade OAI stream for 1.4.0 (when release time comes)? How do we document this? Is April still Archipelago month for this/later? Are dandelions yellow? I don't know, I have seen white and pink ones. I feel it is ready for a beta test (merge)

@alliomeria
Copy link
Contributor

Sounds like a great plan to include an example/premade OAI stream for 1.4.0 @DiegoPino

I think we can definitely reuse the local test templates we've been working with, and settings, can swap in the Archipelago Default DC + mods templates in place of the ones we customized for our partner too.

Also happy to help document and all that good multicolored springtime jazz 🌼 🌸 💮

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Drupal Views Ask and you should receive Drupal 10 Upgrade economy enhancement New feature or request future roadmap Things we would love to have but are no priority for version 1.0 metadata Meta(l) data Search and Discovery Mess around and find out Search API Working Group's 💜 Imagined, curated and loved by the Working Group
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants