okfn / timemapper

Create and share elegant timelines and timemaps fast
http://timemapper.okfnlabs.org/
MIT License
273 stars 60 forks source link

Unable to start a new spreadsheet #224

Closed avdata99 closed 2 years ago

avdata99 commented 2 years ago

The URL always return 404 internally and shows That URL doesn't exist error message

Selection_368

Using the URL https://docs.google.com/spreadsheets/d/1saz7b7WF97xb7EA9XS9ea-q-26owrRteAaNYNgz48Bc

The transformation at

var url = recline.Backend.GDocs.getGDocsApiUrls(e.target.value).spreadsheetAPI;

get the URL https://spreadsheets.google.com/feeds/worksheets/https://docs.google.com/spreadsheets/d/1saz7b7WF97xb7EA9XS9ea-q-26owrRteAaNYNgz48Bc/public/basic?alt=json (check the two http parts, the URL is bad)

We are using a very old JS library to build those urls

lwinfree commented 2 years ago

As we discussed in slack, I'm posting relevant issue reports here as well to keep track of them. I'm not sure if they are related, or if there is something else going on:

rufuspollock commented 2 years ago

This has not been maintained for some time. I strongly suspect that google have changed their API for accessing spreadsheets (i have seen this on the net mentioned in the last few years).

kcirsresearch commented 2 years ago

This issue is still persisting; has there been any progress on it? Is this the best place to find updates on this issue? Thank you!

lwinfree commented 2 years ago

Hi @kcirsresearch! Timemapper is one of many old project that the OKF tech team is currently assessing the maintenance of. Can I ask you how often you use it?

Also, @rufuspollock do you have any interest/time to look into restoring functionality in the mean time?

shawnday commented 2 years ago

Am not sure whether there's a need for a survey to assess the use of TimeMapper, but as am watching the conversation would share that as part of one of the historic datavis modules and workshops that I conduct, TimeMapper has been a favourite and has been used by 150-200 participants on a yearly basis as part of in-lecture hands-on directed instruction. Additionally would have a number of undergraduate and post graduate digital humanities students that would choose to employ TimeMapper as part of their capstore digital artefact. For what that is worth. Thanks @rufuspollock for devising it and making it available.

kcirsresearch commented 2 years ago

Hi @kcirsresearch! Timemapper is one of many old project that the OKF tech team is currently assessing the maintenance of. Can I ask you how often you use it?

Also, @rufuspollock do you have any interest/time to look into restoring functionality in the mean time?

Hi @lwinfree ! Thanks for your response!

I use it frequently - I'm part of a team developing educational resources for English and literature classes, and have been using TimeMapper over the past year with the hopes of having a resource that could continue to be available in the future for students, teachers, and other users! It's also something I've recommended to others, and would be very happy to see maintained.

amercader commented 2 years ago

Thanks all for providing feedback on TimeMapper usage. We'd love to keep this online and used by people but at the same time the changes needed to fix it are not trivial, the codebase is ancient and our resources are limited.

Technically this is indeed caused by changes in the Google Sheets API used under the hood.

# v3
https://spreadsheets.google.com/feeds/worksheets/<SPREADSHEET_ID>/public/basic?alt=json
# v4 
https://sheets.googleapis.com/v4/spreadsheets/<SPREADSHEET_ID>?key=<API_KEY>

This should address this specific issue but looking ahead the project needs a good update, with several of each requirements outdated. Different parts of the application are broken like the "Pick from Google Drive", etc

I'll get one of our devs to try to apply a quick fix to at least getting it back to a usable state. If that proves unsuccessful we'll need to put the project on hold until we can secure more funding/resources and if that doesn't happen I'm afraid we'll have to sunset the project.

@rufuspollock let me know if you or someone at Datopian could help with trying to fix this specific Google APIs issue

kcirsresearch commented 2 years ago

@amercader Thanks for your input and transparency! I'm hoping the fixes can be made, but I understand if it isn't feasible given your resources.

If any updates are to happen, a change I would love to see would be for the time map to read its data from something stable like an uploaded spreadsheet file, rather than a shared link from a source susceptible to updates.

However, that's purely in the realm of speculation based my personal convenience - I have no idea the difficulty or resources involved in coding such a thing. Thanks again for your help!

rufuspollock commented 2 years ago

@amercader this is something that it is possible to help sort out (i'd mentioned this ~1.5y ago actually to Jo). Would you be open then to @datopian taking this on (and ultimately transitioning the domain)?

asegal20902 commented 2 years ago

@amercader @rufuspollock I would very much appreciate enabling TimeMapper to survive, as I have found it useful in my digital curation projects, especially creating TimeMaps of Camilo Jose Vergara's photographs of American cities over time.

thtbln commented 2 years ago

I've been just able to create a new timemap by copying the "key" part from the Google Drive link and using the link: https://docs.google.com/spreadsheet/ccc?key=1UsrVT5_B0gL43CduZEyXevGHK1bo7kEp8J7BNPOXMY4#gid=0 However, the new timemap doesn't show up as well as the older ones in my account (http://timemapper.okfnlabs.org/thtbln).

asegal20902 commented 2 years ago

Hi @thtbln I could not see the Hawaii/Germany map come up at http://timemapper.okfnlabs.org/thtbln/hawaii-germany. The link that you have is to the spreadsheet. What link should I use? BTW I am digitizing maps of Hawaii at the Library of Congress

amercader commented 2 years ago

Here's an update on the current situation:

Thanks everyone for bearing with us

aivuk commented 2 years ago

Some existing timelines stored on users profiles are still not being loaded, @aivuk is on this and will hopefully get it fixed soon.

All the examples in the frontpage are working again and most of the old user timemaps must be working also.

alanger06 commented 2 years ago

Thank you so much for working on this. Is there anything special we need to do to update our existing source sheets to get them to load? I have one of those user maps that's still hanging on the load screen.

http://timemapper.okfnlabs.org/artiflection/immigration-and-world-history-timeline

aivuk commented 2 years ago

Fixed yours now! Now the address for the spreasheet must be in this format:

https://docs.google.com/spreadsheets/d/e/2PACX-1vQFm8rpfcElui6AQ5UXBpjIPJzR09-x878DWdyJFBjqF7r-ZkjPYv7LJ7FUZjE68x4zKNtmnKCgETXy/pub?output=csv

Instead of:

https://docs.google.com/spreadsheets/d/e/2PACX-1vQFm8rpfcElu…09-x878DWdyJFBjqF7r-ZkjPYv7LJ7FUZjE68x4zKNtmnKCgETXy/pubhtml

I'm automatically converting old style urls to this new format, but I'm discovering new old url styles every time.

alanger06 commented 2 years ago

Thank you!

Schimy commented 2 years ago

thx a lot for fixing!!!

hemed commented 2 years ago

Thank you @aivuk for looking into this. We have noticed a problem in our exhibition timeline here https://timemapper.okfnlabs.org/tarjelavik/tidslinje-chk and hope you can point out what is the problem.

It says "No data to show". When I inspect the request in the browser, it starts by querying https://docs.google.com/spreadsheets/d/e/2PACX-1vRw7DdafQOdCirAqeA2PxSyPefS3G2QLbMRhB2_Tx9L21-m1cy5F3EFTWH65eq8rB-ma7m-QHT9SPiA/pub?output=csv

.. and then redicrect to: https://doc-0k-1s-sheets.googleusercontent.com/pub/70cmver1f290kjsnpar5ku2h9g/gk0q4g4punh1c96b7qlh66csu0/1634201580000/112152701809846713877/*/e@2PACX-1vRw7DdafQOdCirAqeA2PxSyPefS3G2QLbMRhB2_Tx9L21-m1cy5F3EFTWH65eq8rB-ma7m-QHT9SPiA?output=csv

aivuk commented 2 years ago

Hi @hemed, just change the columns "Start Date"and "End Date" to "Start" and "End" like here that it will fix your problem.

aivuk commented 2 years ago

You can see the result with the column header corrected here: http://timemapper.okfnlabs.org/anon/6us5wu-tidslinje-chk-

hemed commented 2 years ago

Awesome @aivuk . Thank you so much!

amercader commented 2 years ago

To all affected by this issue, we are planning on building a new version of Timemapper (keeping all existing data and functionality) over the next months. Progress can be tracked here: https://github.com/okfn/timemapper/issues/229