question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow install hook to add auto-incrementing hooks

See original GitHub issue

Is your feature request related to a problem? Please describe. It would be great if the install hook auto-incremented the restore point ids, that way they don’t overwrite each other when full upgrades are performed.

Describe the solution you’d like After installing the pacman install hook, the first pacman -Syu should create restore point #00, and the next #01, and so on…

This would mean that we’d create a “history” of restore points correlated to full upgrades, and would be invaluable when trying to roll back full upgrades that previously occurred.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
JustinTimperiocommented, Jul 22, 2020

Hey archeronfail,

Just wanted to give you an update here. I really like the concept you put forth. Unfortunately, I realized my Alpha code had become image

The concept, design, and features have changed so drastically, a major overhaul was in order.


This has inspired me to rewrite pretty much the whole thing for a proper beta release. Since I am not a huge OOP fan, I’m going with a more functional/pythonic approach using dictionaries to pass variables through my functions. This should result in a much cleaner codebase and a lot of flexibility/abstraction in the future without hurting performance.

Not sure when I will finish this but hopefully once I’m done unraveling my own spagett, I’ll get something workable merged into the master.

2reactions
JustinTimperiocommented, May 22, 2020

Hey acheronfail, Thanks for the suggestion and fork. This is something that I actually started in my dev branch. I have created a separate restore point type called snapshots, which auto-increment up to a user-defined count. This feature leaves restore points open for users store RP’s as they wish, while still maintaining a catalog of each change made to the system. I got stuck working on session management though and haven’t really touched it in a while. I’ll definitely take a look at what you have done and see if I can integrate it into my dev branch. Wasn’t honestly sure anyone was using this lol

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package Version Increment Pre- and Post-Commit Hooks
To install the hooks, create the pre-commit or post-commit file in your .git/hooks directory, paste in the commands from the appropriate one in ......
Read more >
pre-commit autoincrement for c# projects
I was trying to figure out how to have autoincrement for c# projects that ... To use, put the file into .git\hooks\ folder...
Read more >
How to Use Formidable Hooks
frm_field_classes: This hook allows you to add classes to an input field. Classes can be added without custom code by going into edit...
Read more >
Hooks - Triggers · OrientDB Manual
Hooks work like triggers and enable a user's application to intercept internal events before and after each CRUD operation against records.
Read more >
Sequence and autoincrement handling for mongoose
When using insertMany the plugin won't increment the counter because the needed hooks are not called. If you need to create several documents...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found