Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Have a history log in servers. #1020

Closed
marc-us opened this issue Mar 30, 2017 · 3 comments
Closed

Feature request: Have a history log in servers. #1020

marc-us opened this issue Mar 30, 2017 · 3 comments
Labels
status: duplicate This issue has already been raised

Comments

@marc-us
Copy link
Contributor

marc-us commented Mar 30, 2017

Hi,

I would like to extend the server view with history logging capability.
The usecase is to keep track what happen with server in past.
Like: cabling change, IP assignment, HW expansion etc.

For the beginning I would like to make it available as a free text form. (timestamp, tag, author, description) The tags should be implemented like server roles. In view It will be a separate tab like inventory items.

Later I would like to extend it with automated comments, like when the IP was assigned, changed any field etc. which is now available just on dashboard, without any filtering possibility.

If you need this, I can share with the community. If not I will keep it in our repo.

Regards,
Mark

@zevlag
Copy link
Contributor

zevlag commented Mar 30, 2017

This probably dup's #979 and #683

@marc-us
Copy link
Contributor Author

marc-us commented Mar 30, 2017

Not so much, check my modell.py:
class HistoryLog(models.Model):
time = models.DateTimeField(auto_now_add=True, editable=False)
user = models.ForeignKey(User, related_name='history_log', on_delete=models.CASCADE)
device = models.ForeignKey('Device', related_name='history_log', on_delete=models.CASCADE)
role = models.ForeignKey('HitoryRole', related_name='history', blank=True, null=True, on_delete=models.PROTECT)
message = models.TextField(blank=True)

class HistoryRole(models.Model):
name = models.CharField(max_length=50, unique=True)
slug = models.SlugField(unique=True)
color = ColorField()

@jeremystretch
Copy link
Member

Duplicate of #151

@jeremystretch jeremystretch added the status: duplicate This issue has already been raised label Mar 30, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: duplicate This issue has already been raised
Projects
None yet
Development

No branches or pull requests

3 participants