openwisp / openwisp/openwisp-controller

[bug] Cannot set Map for devices if the Map is for another organization

Open
#568 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
773
Forks
315
Avg merge
2d 16h
Merged PRs (30d)
14

Description

I think this should be allowed, for example, if I have multiple devices in the same building but those devices is for different purposes/owner, thus requiring different organization then I should be allowed to put them into the same Map location.

Currently, it's not possible to do this... but can be workaround by moving the Location to the same organization, apply it for the desired device then switch back the Location to the previous organization.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named; begin by tracing how Map, device, Location, and organization relationships are validated. Done means devices belonging to different organizations can use the same Map location without moving the Location between organizations, while existing organization behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.