Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Cannot edit documents #242

Closed
initzx opened this issue Nov 4, 2018 · 24 comments
Closed

Cannot edit documents #242

initzx opened this issue Nov 4, 2018 · 24 comments

Comments

@initzx
Copy link

initzx commented Nov 4, 2018

I am unable edit the document values in the explorer. When i right-click on the field i wish to edit, the edit option is grayed out. What could be the cause for this problem?

@elbelife
Copy link

elbelife commented Nov 7, 2018

I have this problem too in IntelliJ IDEA ULTIMATE 2018.2.

@Orad
Copy link

Orad commented Nov 7, 2018

Any way to bypass this ?

@fgm
Copy link

fgm commented Nov 9, 2018

Same in PhpStorm 2018.2.5 (#PS-182.4892.16) and GoLand 2018-3 EAP (#GO-183.4284.47)

@joenali
Copy link

joenali commented Nov 16, 2018

may be you can see the question:#83 solved by it

@fgm
Copy link

fgm commented Nov 16, 2018

I had already tried the solution in #83 and it doesn't work.

image

Still applies in GoLand 2018.3 (GO-183.4284.84)

@thekie
Copy link

thekie commented Nov 20, 2018

Same

@d0m3n
Copy link

d0m3n commented Nov 30, 2018

Same.

@turboSlowPoke
Copy link

Same

@cbm-dboissier
Copy link

Hi,

Edit document only works with ObjectId. This is a limitation that could be removed but I need some use case with sample ids.

@fgm
Copy link

fgm commented Dec 11, 2018

In the case for which I gave a screenshot earlier (2018-11-16), these are externally generated string ids. Essentially the string form of ObjectIDs, actually.

@cbm-dboissier
Copy link

The "classical" form the ObjectId value is hexadecimal char but I suppose the spec has changed and is more opened, right?

@fgm
Copy link

fgm commented Dec 11, 2018

In this specific case, it is an encoded version, more compact, but it does not really matter: IMHO since essentially any scalar can be used for an _id, using the string representation of the _id, usable with ObjectID too, would provide a unified type for _id you could use in the plugin (since I guess it's Java and you need an actual type ?)

cunneen added a commit to cunneen/mongo4idea that referenced this issue Jan 9, 2019
@cunneen
Copy link

cunneen commented Jan 9, 2019

I just submitted a pull request; the modified plugin can be downloaded below.

mongo4idea.zip

To use it, uninstall the official plugin and then install it from disk.

image

@xstable
Copy link

xstable commented Jan 21, 2019

What's about this bug. Need this urgend to be solved.

@cunneen
Copy link

cunneen commented Jan 23, 2019

@xstable , is the zip file above not working for you?

I just submitted a pull request; the modified plugin can be downloaded below.

mongo4idea.zip

To use it, uninstall the official plugin and then install it from disk.

image

@xstable
Copy link

xstable commented Feb 1, 2019

@cunneen didn't try it. If you still solved it, (like you did), would love to see that the team doing the merge.
I prefer the general way to upgrade Plugins.
As long as this merge is pending I start to use mongodb-compass.

@cbm-dboissier
Copy link

cbm-dboissier commented Feb 1, 2019

Dear @xstable, the team of this plugin is composed by me and myself. I built it few years ago for professional needs and I was happy to share it.
As you may know, OSS are maintained by people who have spare time and motivation, mostly unpaid.
I understand your frustration because this bug annoys you. The point is I do not have time to work on it because I am full both professional and personal. If you read the Apache License 2.0, this plugin is provided as is.

I would like to thank @cunneen for his PR and the build he shares to unblock the situation. I sorry for not having merged it for now. I hope I will have some time to make some serious enhancement.

Thanks.

@antonkomarev
Copy link

antonkomarev commented Mar 1, 2019

@cunneen I've tried it. Still in read-only mode.

@mattdaviscodes
Copy link

@cunneen Installed from your .zip correctly, I believe. Still having the read-only issue.

@cunneen
Copy link

cunneen commented Apr 17, 2019

@mattdavis1121 and @antonkomarev , it works fine for me. You need to right-click on the ID (not on any other properties) in order to edit. See attached.

mongo4idea

@xstable
Copy link

xstable commented Apr 17, 2019

When will this fix be merged in the master?
BTW: Tried the ZIP in 2019.1, didn't work. DataWindow never open if Choosing an Collection in Monogo-Explorer... even like Context-Menu && clicking "View Collections Content" or pressing F4 didn't work.

@mattdaviscodes
Copy link

mattdaviscodes commented Apr 17, 2019

You need to right-click on the ID (not on any other properties) in order to edit. See attached.

This was the problem! I can't be the only one who was just using the tool wrong. The base install from this repo works, then. It just doesn't work how I thought it would. Can't say for everyone, but for me this was just a UI problem. It's confusing that you can right click on properties other than ID and see Edit as an option, but have that option greyed out.

@cunneen
Copy link

cunneen commented Apr 18, 2019

The base install from this repo works, then. It just doesn't work how I thought it would.

This just fixes an issue where the ID is not generated by MongoDB i.e. it's not an ObjectId(...); the base install currently doesn't work for such documents.

Glad you figured it out.

@xstable
Copy link

xstable commented Jun 4, 2019

For me, the content-window never opens:
PHPSTORM 2019.1.2
Mongo-Explorer: 0.12.2

mongo_explorer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests