I am making a simple time sheet for which people can register times
worked on a bug real quickly.
But the hours added to the bugs_activity table are not noticed
anywhere.
here is a simple made up line
Bugzilla::Bug::LogActivityEntry(1, 'work_time', 0, 66, 1, '2010-01-12 14:44:44');
Pretty much, add 66 hours to bug 1, work time. This executes like I would expect but does nothing else. I also need to send e-mails and add comments. I can't find anything on using Bug.pm or LogActivityEntry API.
Is this a huge undertaking or what ?
What I would need is what else is required of me, this is just a batch job that runs when the user presses submit and this info can be on many bugs. I know how to get the bugs, user and such, just not registering the hours, I need the final item. This can be almost as rough as the example above.
I am using Bugzilla 3.4.4
Time worked is kept in longdescs table - the table with comments. Hours worked in fact is a property of a comment. (I also think it's weird.)
bugs_activity table that you're modifying is the table for the history of changes, I bet you can see the result of your call on the "bug activity" page. But it does not change the state of the bug.
Hope this helps.
Igor
Related
I have a simple application, to which I just added Firebase.
Since 4 days I am trying to make it work, and yesterday finally I started seeing events coming in DebugView (which proves that I configured it correctly). It was moment of pure joy, as each single event was recorded in DebugView (no matter how many times I clicked a button -> all events reached Firebase).
This happiness didn't last long however.
Today it stopped work, but not like "never works", but it skips like 95-99% of events (some events sometimes gets to DebugView. Wow! Pure magic.
Using logcat, I can see all events are successfully uploaded/sent.
I wonder if there is any undocumented "magical" thing that might me blocking my events?
Or is Firebase down today (21st Sept 2022)?
Please note that:
When my events passes - it shows "1" in USERS IN LAST 30 MINUTES which is correct.
When events are not reaching DebugView, then nothing is shown in USERS IN LAST 30 MINUTES (which basically means that it is not only problem with DebugView - but actually no activity is reaching Firebase AT ALL).
Following picture proves that some events reached Firebase (but dozens other events, like screen_view or my custom dummy_event never got there).
Last picture proves that my events actually are successfully sent.
EDIT 25th Sept 2022
I deleted Firebase project and created a new one, run flutterfire configure and guess what? It started to work WITHOUT any other change in the code. (please note that I was running flutterfire configure many time for previous firebase project as well, without any result).
I am frustrated that I wasted few hours on looking for a bug in my code, while it was some "magic" on Firebase side that simply made it NOT WORKING.
So do you think it is over now? And that everything works?
You can't be farther from truth.
This image shows that there was 1 active user. Yes, it was me debugging app using DEBUG build. So since it was working, and decided to make final release build to my device (flutter run --release) and guess what?
Yeap - nothing shows in Firebase again. Simply my release build, installed on my device does not shows any activity on Firebase.
Is it because it was not downloaded from Google Play?
Is it because I have some misconfiguration?
Is it because Firebase has bug?
Who knows... Firebase is like Hogwart - full of magic.
I have a very anxious and bad experience since 02 days with my FiresFirebase Firestore.
Before this, everything was perfect, but since 02 days, I'm not able anymore to delete the document in my database.
I first noticed that the document was no longer erased by the application by the app process needed.
Then i tried directly to erase the document, i was very surprise. When i delete the doc, firstly the docs has been deleted, but after some times the same docs appear again.
I have looked the rules, evrything is fine as the google documentation recommanded, and the thing is, i worked with my app project like that before without any problem... but sudundly this one appear and i don't understant why.
Please, can you help me to fix this, I'm about to finalize this app, and before fix that ..... I can't do anything !!!!
PLEASE HELP ME ......
I have added a 'number_of_members' value to the Customer DocType via customization.
In my application I have tried several ways to update the value. However the value never updates in the webpage. I feel like I'm missing some sort of save or update or commit step.
For example I have tried:
frappe.client.set_value('Customer', '00042', 'number_of_members', 8887)
frappe.set_value('Customer', '00042', 'number_of_members', 8887)
frappe.db.set_value('Customer', '00042', 'number_of_members', 8887)
and also
customer = frappe.get_doc('Customer', '00042')
customer.number_of_members = 8887
customer.save()
In each case I can do something like frappe.get_value, or frappe.get_doc and it shows the value is set to 8887. However it never updates in the web side. This is what makes me think I'm updating some sort of cache or database transaction and I need some way to save it, but have not had any luck.
I am mostly testing this via bench console if that has any bearing on it, but I've tried a couple of the methods in my application code as well.
Relevant documentation:
Frappe Developer API - Document
Frappe Developer API - Database
Turns out the answer is to call frappe.db.commit() after making changes. If someone can point this out in the documentation so I can better understand how I'm missing stuff, I would appreciate it.
I also noticed if you try to Save something in the UI before you send frappe.db.commit() the UI will hang.
I was on the process of publishing my first google assitant action and after filling all the required details I am receiveing two errors.
1.Whether or not your action is for families is required
I have already checked and accepted the terms and conditions for families question. The data is saved also. Still I do not know why the error keeps popping up.
2.For en: Your sample invocations are structured incorrectly.
I have tested my invocations in the emulator and it seems to be working. And this error appears to be random. Sometimes, it does not happen even if I just save the same details again.
Any help appreciated as I am a complete new-bie to this.
I think this was a problem from the console itself. I updated today again and it seems to be saved.
I'm hopefully missing something obvious here...
I have just kicked off developing a new Access 2010 application. Something personal and hopefully simple.
The first thing I need to do is read a bunch of files off of the hard drive. I parse the contents adding the information to a table if it doesn't already exist.
Code works fine, that's not the issue. As it can take a while I've added a simple progress dialog using a standard form but in dialog/popup mode. As the For Each loop of the FSO.Folder.Files object is progressed I send some information to a couple of text boxes and issue a Me.Repaint (have also tried DoCmd.RepaintObject acForm, "FormName").
The issue is that I can get anywhere from 5% to 35% of the process complete before the repaints stop responding. The form only repaints when it gets to 100%.
The process uses limited recursion - if there is a subfolder - it calls itself to process that subfolder, but the folder structure is fairly linear so not many of those.
There are nothing bound to the form. All table updates happen in code and via RecordSets.
Any ideas why Access stops responding?
Cheers,
Roy
Add DoEvents after Repaint. That will cause Access to yield to Windows, which will can then handle its pending tasks ... such as updating the display in this case.
Actually, if your code updates text boxes, I don't see why you need to Repaint the form in order to display the changes. Try something like this instead ...
Me.MyTextBox = "hello"
DoEvents