Giter Site home page Giter Site logo

Comments (24)

bobbi-SMR avatar bobbi-SMR commented on June 10, 2024

Hi,

I'll take a look at this ASAP, and get back to you; the code may not be triggering the correct conversion algorithm.

from aspace-import-excel.

bobbi-SMR avatar bobbi-SMR commented on June 10, 2024

@amberjewel : With the very small test case I created
test_dates.xlsx
I was unable to reproduce your issue. Which version of ArchiveSpace are you working with? Would you be able to attach an example of your spreadsheet?

Thanks,
Bobbi

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

from aspace-import-excel.

bobbi-SMR avatar bobbi-SMR commented on June 10, 2024

Hi, the attachment didn't come through :-(

(I tested on v1.5.3, btw, but that shouldn't have mattered...)

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

aspace_import_excel_test2.xlsx

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

There we go. I'm adjusting to GitHub as a user - I've only ever lurked before.

from aspace-import-excel.

bobbi-SMR avatar bobbi-SMR commented on June 10, 2024

Got it! I may not be able to get back to you before tomorrow.

Cheers,

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

Thank you. We're trying to test this every which way before we go live with the plugin, and I appreciate any assistance.

from aspace-import-excel.

bobbi-SMR avatar bobbi-SMR commented on June 10, 2024

Testing every which way is a good idea 😄
Here's what I see so far:
In my tiny test, the date cell is formatted as "general".

In your spreadsheet, the date cell is formatted as "Custom" "Type: yyy-mm-dd" I'm not an excel guru (she's out today 🙁 ), so I don't know what the customizing does, but perhaps behind the scenes those yyy-mm-dd becomes a DateTime object, resulting in that time information being included when my code comes to process it, whereas perhaps when it's general, it comes through to my code as a date simple string?

I see that when I try to add a row in your spreadsheet, it converts 1984-04-06 to a Date, no matter what I do about it! This doesn't happen with my spreadsheet; I don't know enough about Excel to know how to turn it off!

Hopefully tomorrow I can grab a small amount of our Excel guru's time, because if we can figure out how to turn that off, it will go faster for you than waiting for me to make a change in the ingest code, test it, put it up on GitHub, etc.

Til tomorrow,
Bobbi

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

from aspace-import-excel.

bobbi-SMR avatar bobbi-SMR commented on June 10, 2024

Hi, Amber,

Just as I was getting ready to go home for the night, a different Excel guru cruised by.

She suggested that the automatic date stuff might be caused by you using a different version of Excel than the one we used to create the template. Some investigation showed that the begin and end date columns are defined in our template as having the format "General"; if the columns are set to "Text", the automatic date stuff doesn't happen!

It will take me a little while tomorrow to get the enhanced template up on github (there is a vetting process, like doing some testing, you know 😃 ). Be warned that if (at least in the version of Excel I'm using) you change the formatting of those columns with cells of the YYYY-MM-DD format already entered, you'll get some VERY strange results.

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

from aspace-import-excel.

bobbi-SMR avatar bobbi-SMR commented on June 10, 2024

Hi, Amber,

In one of those "D'OH!" moments, it occurred to me that I could upload the revised template here, so you could try it out. Here you go! You Get It First 😃
aspace_import_excel_template.xlsx

And thanks for your kind words; it's so rewarding to be working on something people actually use and need.

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

from aspace-import-excel.

bobbi-SMR avatar bobbi-SMR commented on June 10, 2024

Hi, Amber,

The plugin should work with 2.x (at least I coded it to do so, and tested it locally!).

Cheers,
Bobbi

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

from aspace-import-excel.

pobocks avatar pobocks commented on June 10, 2024

Hi Amber,

I'm Dave, a co-worker of Bobbi's. Would you be able to provide us with the spreadsheet?

I think what's happening is that you're hitting the time-out just because something in 2.x got slower or similar, and just fell past the boundary. I'd like to verify this; it certainly might be something else, after all. If that is the problem, chunking it up is probably the right move; I don't think there's really a meaningful way to stream-process Excel files, afaik.

from aspace-import-excel.

amberjewel avatar amberjewel commented on June 10, 2024

from aspace-import-excel.

pobocks avatar pobocks commented on June 10, 2024

Hmm, if it's attached here, I think github swallowed it - if you want to email it to dave UNDERSCORE mayo AT harvard DOT com, I'll poke at it (maybe tomorrow!)

from aspace-import-excel.

randystern avatar randystern commented on June 10, 2024

from aspace-import-excel.

bobbi-SMR avatar bobbi-SMR commented on June 10, 2024

I've committed the template spreadsheet; now at v1.4.

from aspace-import-excel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.