snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
9.91k stars 3.01k forks source link

[Feature Request]: Archiving Locations, and history for address/attributes #14685

Open apjanke opened 1 month ago

apjanke commented 1 month ago

Is your feature request related to a problem? Please describe.

Our Locations change over time, both the addresses of these locations, and the set of locations that exist. As a distributed team mostly using WeWork and the like, we open and close office locations pretty frequently, and have several Remote locations for individual users who work from home. When we close an office location or an employee leaves the company, those locations should no longer really have assets or people located at them.

I'd like to preserve the existence of a closed Location's record as metadata and history in Snipe-IT, so that it can still be referenced in the history data for assets and people. But I'd like it to no longer appear in the dropdown lists for assigning people and assets to locations, and not even permit new assignments of people and assets to that location.

We also change the physical location and address of a nominal location somewhat often. E.g., we might maintain a "Boston Office" location, but every year that might move to a different WeWork building in Boston. Would be nice to have that be a single Location in our Snipe-IT data model, but have its history of addresses readily visible in the Location view, without having to dig in to the History tab to show the detailed audit log of the location record.

For that matter, it doesn't look like Locations actually show a History that tracks the changes made to that record? For example, we have a "DC Headquarters" location in our Snipe-IT, and today I edited it a couple different times, changing its name to "DC Headquarters (closed)" and altering its address. But the History tab for that location isn't showing any entries at all.

image

Describe the solution you'd like

I think it would be nice if Locations supported an Archived state, to use for locations which have closed or are no longer with the company. Archived locations could be excluded from dropdown menus for location selection when doing assignments (but maybe still show up in the dropdowns for filters and searching), and could be disallowed for any new assignments.

And maybe the Location view (like shown below) could have an additional Attributes tab or similar, that showed a history of the Address and related fields for them, in a readable manner, and listing the dates when those addreses were in effect?

image

Describe alternatives you've considered

I considered just deleting the locations that were closed or for former employees. But I'm not sure what happens to the historical location info for assets and people when that happens, and didn't want to try it out on our live Snipe-IT instance. Plus, it looks like you can't do that until all the asset and people (location Manager, I think?) assignments for it are removed. For closed offices or former employees' WFH locations, might be nice to be able to set them as Archived to prevent new asset & people assignments to them, while those locations are being "wound down" and still have some people assigned to them. And seems like historically-active locations might still want to have a Manager assigned to them, so users know who to ask if they have questions about that old location.

Additional context

No response

welcome[bot] commented 1 month ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 1 month ago

That history tab is meant more for things that were assigned to a location. On the asset history itself, you'll see the updated value (location Blah to Location Foo) in the log meta info.

x249918904 commented 8 hours ago

该历史记录选项卡更多地用于分配给某个位置的事物。在资产历史记录本身上,您将在日志元信息中看到更新的值(位置 Blah 到 Location Foo)。

Hi,I found that the history records of the assets are empty, and no history can be seen. image