| shaal |
I just opened in Gitpod the previous issue (3240318) |
| shaal |
Let me check what I can see |
| leslieg |
Yes it would be helpful to be able to launch a working prototype of the Project Browser. Currently both links off the Project Browser project page are not functioning - gitpod and simplytest.me |
| shaal |
TIL - you don't have to be logged in to see this page -https://8080-purple-owl-m8jie4i3.ws-us25.gitpod.io/admin/modules/browse |
| chrisfromredfin |
Ha! Good find. Wonder if I care or not? Probably so cuz it will tell you what you have installed eventually. I'll file an issue! (Or do you want to) |
| shaal |
@chrisfromredfin I think it gets stuck with this -onMount(async () => {
// todo Make this URL dynamic. It would work to simply change this to
// "/drupal-org-proxy/project" for when the Svelete JS is loaded within a Drupal page,
// but that would not work during development when viewing the Svelte app on http://localhost:5000/.
const res = await fetch(`/drupal-org-proxy/project`);
data = await res.json();
}); |
| shaal |
What is /drupal-org-proxy/project ?Is there something else I need to install ? |
| chrisfromredfin |
It should basically never be asking for that URL without a query string. |
| chrisfromredfin |
like ti shouldbe like at least ?page=0 |
| chrisfromredfin |
but it's requesting every. single. project. from drupal. |
| chrisfromredfin |
and I thought #3227738: Fix Drupal routing and Svelte app routing would fix it |
| chrisfromredfin |
but it actually wouldn't since it's still requesting that URL: + const res = await fetch(drupalSettings.project_browser.origin_url + "/drupal-org-proxy/project"); |
| chrisfromredfin |
just doing it with a base url now lol |
| chrisfromredfin |
@Rajab Natshah do you agree that we shouldn't be making a blanket request to /drupal-org-proxy/project? |
| Rajab Natshah |
@chrisfromredfin Yes |
| shaal |
I installed a fresh new D9 website locally |
| shaal |
+ project browser.I see the same problem - |
| shaal |
image.png |
| shaal |
spinning with no results |
| shaal |
What am I missing? |
| chrisfromredfin |
Nothing. Certainly doesn't have anything to do with GitPod. I don't think that onMount() call should be made. |
| shaal |
Oh, reloading the page after a few minutes - and I see the results! |
| Rajab Natshah |
@chrisfromredfin I had time to study the Drupal.org REST and other APIshttps://www.drupal.org/drupalorg/docs/apis/rest-and-other-apis |
| Rajab Natshah |
https://www.drupal.org/api-d7/node.json?type=project_module |
| Rajab Natshah |
"self": "https://www.drupal.org/api-d7/node?type=project_module",
"first": "https://www.drupal.org/api-d7/node?type=project_module&page=0",
"last": "https://www.drupal.org/api-d7/node?type=project_module&page=962",
"next": "https://www.drupal.org/api-d7/node?type=project_module&page=1", |
| Rajab Natshah |
Should pass the args .. and follow the API for the number of items on each pageeasier coding and easier for rendering too (edited) |
| shaal |
@chrisfromredfin please ping me if there's anything on the DrupalPod side I can help with |
| chrisfromredfin |
will do, thanks @shaal - only one question, the button on the home page, what does it build from? the -dev release, or the HEAD in git or what. That is, how soon after merging something can I expect the DrupalPod link to reflect that change |
| chrisfromredfin |
@Rajab Natshah I'm mad now because my theory was wrong. I got rid of the generic call in App.svelte and now it's ONLY making the right requests, and that's still pending forever... why?! |
| chrisfromredfin |
image.png |
| Rajab Natshah |
@chrisfromredfinThe API Call + Cache + RenderNot sure which one should be first.Call the API and cache before going into the test?Cache first or render first?The automated test is flickeryIt will pass one. Then fail. then pass.Listed that in my report finding at this issue---Same for normal use too. The API Call + Cache + Render (edited) |
| shaal |
@chrisfromredfin the link in project_browser main page, is set to use version 1.0.x of the module (with Drupal 9.3.x)As soon as you make a commit in Drupal git for the project, open DrupalPod from the project_browser main page, and you should see the latest changes.(there's no caching, each new workspace loads the latest version available) |
| chrisfromredfin |
Thanks, @shaal! |
| chrisfromredfin |
Not sure what you're saying @Rajab Natshah are you saying that is related here to this issue? |
| Rajab Natshah |
Audio Audio time scrubber, 0 seconds / 1 minute, 7 seconds1:071x |
| chrisfromredfin |
Aha, I thought that's what the "Fixture" was doing was pre-warming the cache. Got it. OK. Thanks for this - but in general, good - change the caching mechanism and remove the fixture. :thumbsup: thanks! |
| xurizaemon |
https://www.drupal.org/docs/creating-custom-modules/let-drupal-know-abou... is not specific (but it could be updated if there is a clear winner) |
| xurizaemon |
aha https://www.drupal.org/node/542202 actually recommends "User interface" and says this If present, the package string groups modules together on the module administration page (admin/modules); the string should therefore be the heading you would like your modules to appear under, and it needs to be consistent (in spelling and capitalization) in all .info files in which it appears. It should not use punctuation and it should follow the Drupal capitalization standard as noted above.Capitalization is important because package string is case sensitive, and using package = fields in one module and package = Fields in another would yield two different packages on the module administration page. This can be highly confusing as Seven (the default administrative theme) capitalizes fieldset legends, making fields and Fields indistinguishable. Using package = Fields is the correct way. |
| xurizaemon |
Found the underlying answer, intrigued if there is some cache of project metadata which folks here know about, let me know if so :) |
| chrisfromredfin |
This is the best we got: https://datastudio.google.com/u/0/reporting/9c1a4c31-fb9a-4d48-a517-c7fc... -- there's nothing as a result of parsing .info.yml's though. |
| xurizaemon |
thanks Chris! I was guessing you might have something like that, given lets4's post to the "Migrate" module category issue :smile: |
| xurizaemon |
is it access controlled? I just have this |
| chrisfromredfin |
weird; no it is coming up for me but I don't believe it's access-controlled. @Andrew Olson (andrewozone he/him) is the owner in case that's needed. |
| Andrew Olson (andrewozone he/him) |
The Google Data Studio link is not access controlled. I was able to visit and see results and apply the filters. It might not have been visited in a while so maybe went "inactive" (just a guess, I don't know how Google works this). But regardless, you should see it now (same link as above but reposted in context): https://datastudio.google.com/reporting/9c1a4c31-fb9a-4d48-a517-c7fcdbb5... |
| tim |
So wasn't sure what you were meaning by meta data, @xurizaemonI have more info .... It gets a bit complicated.Its in spreadsheet form that isn't well documented. Datastudio makes it nice and organized! I can share a link with you if you would like to the spreadsheet I have. Probably good to spend some time and explain it.Or I am willing to share results of what you are looking for. Just let me know. (edited) |
| tim |
I don't have everything yet that I would like - so is still a work in progress. |
| tim |
A sample |
| xurizaemon |
I'll take another look at the Data studio today if i get a chance (weekend here now). Mostly: I saw a support question (OP) and knew from recent discussion (#3257701: Add module category "Migrate") that data to answer it likely existed somewhere; I try to learn by answering questions, and sharing. So I asked here :) |
| xurizaemon |
But also - I'm interested to see your call for migrate hands as part of project browser. I can't commit specifics right now, but please keep me in mind as it's a thing I'm doing lots of currently! |
| xurizaemon |
My question here boiled down to select count(*), case_format(package) from modules group by case_format(package) (case_format is imagined and returns "Title case" if the first character after a space is a capital, else it returns "Sentence case", furious hand waving) (edited) |
| xurizaemon |
The question though was already answered by finding that we recommended sentence case in D7 module docs, i added docs to D8+ now |
gaurav.kapoor, chrisfromredfin, Gábor Hojtsy, shaal, leslieg, Rajab Natshah, xurizaemon, Andrew Olson (andrewozone he/him), tim
Comments
Comment #2
NadiaFaucon commentedStatus change from "Active" to "Needs Review"
Comment #11
leslieg commentedComment #12
leslieg commentedComment #13
leslieg commented