inbo / etn

R package to access data from the European Tracking Network
https://inbo.github.io/etn/
MIT License
6 stars 4 forks source link

Unable to get detections from outside own receiver network #277

Open PietrH opened 1 year ago

PietrH commented 1 year ago

Summary of a reported issue from an email thread on the 2nd of March 2023: @jreubens , @cfmuniz, and others.

Marine Gonse reports:

However I still don't understand how the right access function. I work on the Fish Intel project and one of our tagged seabass was detected by one of Fishowf receiver in Saint-Nazaire (someone from the fishowf project told me that). But when I request the detections of this fish using get_acoustic_detections(animal_project_code = "FISHINTEL", con=con), I can't see the detections of this fish when I filter the acoustic_tag_id == "OPI-602". Does the Fishowf project has particular right access?

Francisco Hernandez:

I can’t find any detections of OPI-602 in any project.

However, there should be 6 detections for that tag :

etn::get_acoustic_detections(etn::connect_to_etn(), acoustic_tag_id = 'OPI-602')

According to @jreubens this might be because currently users can only detect detections from their own receiver networks, if this is the case this would be a bug as the intention is that users can retreive detections for their own projects from any receiver network.

Another explination could be that Fransisco and Marine possibly do not have sufficient rights to OPI-602

These user limits are regulated on the database side. Do I understand this correctly @salvafern ?

salvafern commented 1 year ago

No idea honestly - I'm not the admin of the ETN database @bart-v and Francisco Hernandez should know more

PietrH commented 1 year ago

Whoops, thanks for the reference!

jreubens commented 1 year ago

Hi, Marine should have sufficient rights. She has access to FISHINTEL and as teh tag belongs to that project she should see all detections of that tag...

MarineRandon commented 1 year ago

Hi everyone, I am not able to visualize this fish from neither the RStudio server nor the Lifewatch data explorer. There is definitely an issue here. Thank you for your help.

CLAUMEMO commented 10 months ago

Hi, I had raised this issue with Aubri on 2023-01-20, because I was not sure if it was a package issue or a database issue. His answer:

Issue in the R package, i've send a message to peter https://github.com/inbo/etn/commit/7958d31ace58bc317f82c1ea9c0d76876df633a7

Can this be checked soon?

PietrH commented 10 months ago

Thanks for digging that up Claudia, I'll look into it this week and see if I can estimate when it'll be fixed. It's on my radar! At the moment I don't really understand how the tag type mapping can stop certain detections from showing up.

Do you have any more information?

@peterdesmet Any insight would be highly appreciated :)

CLAUMEMO commented 9 months ago

I also don't see how the tag type can affect this. Testing, I do get different number of detentions depending on the levels of permissions i assign myself. Can we arrange a meeting for this?