snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Import assets from CSV file and local avatar

Open votsdb opened this issue 12 years ago • 36 comments

I guess we should have the option that we can import our assets from excel file and also we can use our local avatar file instead of use gavatar.com

votsdb avatar Jun 09 '14 03:06 votsdb

and if possibility that we can attach the asset picture, that would be nice!

votsdb avatar Jun 09 '14 03:06 votsdb

CSV import is on the roadmap, however local avatars and images of the assets are not currently planned.

snipe avatar Jun 09 '14 03:06 snipe

local avatar and images of the assets would be nice.

votsdb avatar Jun 09 '14 04:06 votsdb

As I said, it's not currently planned, as there are much higher priority improvements to make. If you'd like to tackle it, by all means, we accept pull requests on good features, even if they're not necessarily ones on the roadmap.

snipe avatar Jun 09 '14 04:06 snipe

cool, yes please, thank you very much Snipe.

votsdb avatar Jun 09 '14 04:06 votsdb

I don't understand what you're thanking me for. I'm saying we are not going to be working on local avatars or asset images, but if you would like to write the code that does it and submit it to the project, we would welcome it.

snipe avatar Jun 09 '14 04:06 snipe

ah, ok, I will do so, thanks again Snipe.

votsdb avatar Jun 09 '14 04:06 votsdb

Any predictions for a milestone on the CSV asset import? We love this tool and this would make the love even stronger :)

Jengah avatar Oct 02 '14 14:10 Jengah

We are currently working on our Beta3 version which includes CSV import of assets, licenses and service agreements and basic users. We expect Beta3 to be ready for testing before end of October 2014. http://cordeos.com/snipeit

technogenus avatar Oct 03 '14 06:10 technogenus

Local avatars and images for models provided in pr #304, I think image on assets might be a bit much

madd15 avatar Oct 29 '14 10:10 madd15

If aphiniti devs have already got this feature working, why not add it to the main branch? This seems like a very useful feature. Problem is I would rather stick to the 'well-known' product aka the one that is being actively developed. I am sure Snipe-IT has no plans to end support soon vs a 3rd party who I am not sure about.

rp-tech avatar Jan 22 '15 20:01 rp-tech

@rp-tech It is a long, annoying and dramatic story, but the short version is that their pull request had literally over 280 changed files. I asked them to break them down into smaller feature pull requests since their big one blew everything up when I tried to test it locally, and they took their toys and went home. The repo they were develping on has been deleted, and they are currently using my software under the guise of a complete rewrite (which it very clearly is not), in order to get around my Affero license (which they should not be doing, since the license still very much applies to them.)

snipe avatar Jan 22 '15 20:01 snipe

Yup I definitely saw that when I took one single look @ their online demo, the first thing that came to mind was a bit of shadiness going on. I mean, FOSS in itself is great and we have seen plenty of nice clones of well-known open-source software and distros (look @ Ubuntu one of the most copied linux OS ever, which in itself started as a debian fork) but when you start stealing other people's ideas and claiming them as your own it's not cool.

Which is why I'd rather go with the original product!

rp-tech avatar Jan 22 '15 20:01 rp-tech

+1 for asset import (any way possible).

I've just started moving our old Google Spreadsheet asset database to this app and am loving it (Currently having to "double handle" all new purchases though until asset import is resolved). The features of this blow me away - especially assignable assets - and is clearly the best way of running things.

I just have some 2000+ assets that need a way to get in to this app before I can swap over that doesn't involve me and a whole bunch of data entry. If this is marked with a "ready" label, can you clarify what remains to be done to see this feature in a release? Or at least in the develop branch. This is the only hurdle that stops me from being able to use this as our primary asset software, and I'm sure a lot of other people need a way to import assets.

Please don't mistake me though, I appreciate all the work you are doing!

PS. the behaviour of the other developer is appalling and I'm hoping you can take some recourse to a blatant violation of your license.

jotterbot avatar Feb 23 '15 03:02 jotterbot

Another vote for asset import. CSV user import is working great for me btw - just had to make sure i used the exact format of firstName, lastName, email address otherwise it would not import! (for users without email I just specified a dead-end email e.g. [email protected])

rp-tech avatar Mar 06 '15 00:03 rp-tech

I have created a workaround for local Avatars.

Our Company collects the pictures with the email adress in one folder under "public". This pictures are .jpg. I added the following to the app/config/production/app.php: 'avatarRoot' => 'Local Path like C:\snipe-it\public\Avatars', 'avatarURL' => '/public/Avatars/', 'avatarFileEnd' => '.jpg',

Add the following lines to app/models/User.php on line 37 ( public function gravatar() ): if( file_exists( Config::get('app.avatarRoot') . $this->email . Config::get('app.avatarFileEnd') ) ){ return Config::get('app.url') . Config::get('app.avatarURL'). $this->email .Config::get('app.avatarFileEnd'); }

This checkes the "avatarRoot" folder with the E-Mail Adress and FileEnd .jpg.

DanielNemanic avatar Apr 14 '15 13:04 DanielNemanic

@DanielNemanic I'm not clear what problem your solution is meant to solve?

snipe avatar Apr 14 '15 13:04 snipe

Also, please do not suggest that users edit the core files. The next time we push out updates, those changes will be blown out.

snipe avatar Apr 14 '15 13:04 snipe

I mean the local Avatar for a Person as a workaround. Maybe its a solution to everyone in the next release?

DanielNemanic avatar Apr 14 '15 13:04 DanielNemanic

@DanielNemanic Local avatars will likely not be in the next release. It's not a very high priority feature for us, since so few people need it. Few people want to take the time to upload photos of their staff.

There should be no need to add anything to the app.php anyway though, as there is a {{ path('public') }} built into Laravel, and a {{ Config::('app.url') }} built in as well.

Overall, I don't think this is a good solution, and again, having people change the core is asking for trouble. Not to mention that if/when we do implement this, everyone who will have used this workaround is now going to have to re-upload those files, depending on how we solve the problem.

snipe avatar Apr 14 '15 14:04 snipe