timetracking | Version 2 of this plugin supports MantisBT version v2 | Application Framework library
kandi X-RAY | timetracking Summary
kandi X-RAY | timetracking Summary
Version 2 of this plugin supports MantisBT version v2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- View time entries
- Returns the table schema
- Get time record menu
- Registers time tracking plugin .
- Get the show report menu
- Get the configuration .
- Get hook hooks
- Initialize the framework .
timetracking Key Features
timetracking Examples and Code Snippets
Community Discussions
Trending Discussions on timetracking
QUESTION
in our company we use a timetracking system built with django. It is deployed with Nginx as reverse proxy and Gunicorn to run the python code. It is basically a simple system with a button to start the attendance and another button to stop. Sometimes users claim that they pressed start or stop, but the system did not process it. We are now determing if our Gunicorn configuration is not suitable for our use case and requests get lost.
So, my question is: Is it possible, that requests get lost when Nginx/Gunicorn is not able to handle the amount of requests?
Facts:
- Worst case amount of about 150 requests at the same time (150 active users of our application, everyone wants to register its stop at the same time. This does acually never happen)
- Gunicorn runs with the default configuration but 3 workers
Any help in this case is appreciated, if you need further information, let me know!
...ANSWER
Answered 2021-Feb-22 at 07:37Thanks to the ideas from @SDRJ, I could solve this issue on my own.
Original server specs- VM with 2 CPUs
- Nginx as reverse proxy
- Gunicorn running with 3 workers and 1 thread per worker
Although a small amount of requests had a average runtime of 0.05 seconds, a load test reveiled that the server isn't able to process more than 200 requests at a time. This resulted in Nginx signaling "Bad Request 502" for the further requests, an indication that Nginx can't reach Gunicorn anymore.
Optimised specsChanging the configuration of gunicorn to:
- 3 workers with 4 threads
This resulted in much better performance. The server was able to easily handle more than 4000 requests at a time.
ConclusionIs it possible, that requests get lost when Nginx/Gunicorn is not able to handle the amount of requests?
Yes, it is. "Lost" might be an unfavorable description, but it can happen that some requests do not get processed.
QUESTION
I have created a component which needs to be individually displayed in multiple parts of the application - (inside of my navigation, on the home page and on a separate route). Therefore, I made all my action dispatches (api calls for reading data) inside a useEffect in this component:
...ANSWER
Answered 2021-Jan-08 at 12:19I have solved my problem. I was actually using the old version of my RootRouter.js
which had the Home
component declared like so:
QUESTION
I'm trying to use the Jira REST API to update issues programmatically via a MacOS program, written in Swift. I have a Jira API Token and have succeeded using CURL. Here is the command:
...ANSWER
Answered 2020-Sep-17 at 21:40I see two issues:
1) You're setting the encodedTokenString to be Data instead of a string.
QUESTION
I have a json file that looks like this:
...ANSWER
Answered 2020-Jun-24 at 22:35As observed in the comments, it's not entirely clear what you want, but if you want to remove the keys that have values equal to [] or {}, then you could use walk
like so:
QUESTION
In the documentation right here :
It is indicated that body parameters timeSpent is required when created a worklog.
However, directly in Jira, you can add a worklog with no work time, only remaining Estimate.
However the rest API doesn't allow it, which is unfortunate because what if I want to update the remaining estimate of an issue without actually log in any time ?
FYI this is the request that i AM doing :
https://{server_url}/rest/api/3/issue/issueKey/worklog?adjustEstimate=new&newEstimate=300
This is in fact modifying the remaining Estimate time of the issue, but it forces me to add a log time of at least one minute.
Is there any workaround that could allow me to change the remaining time without having to log any work time ?
I also tried to use the issue update modifying timetracking, but always get the same error message : cannot update field timetracking since it is not on the appropriate screen , or unknown.
Here's the screenshot :
I'm starting to think there is currently no way to update remaining estimate time of an issue without inserting work time...
BTW, I can modify summary, description, etc... It looks that only the timetracking is not modifiable...
...ANSWER
Answered 2019-Jun-03 at 17:27The solution I have to by pass this problem is to fetch all the worklogs of the target issues, select the last one, and update it with this rest request :
https://{server}/rest/api/3/issue/{key}/worklog/{id}?adjustEstimate=new&newEstimate={minutes}
However that requires that there is at least one worklog that has been added to the issue.
So
Step 1 :
Fetch every worklog using :
https://{server}/rest/api/3/issue/{key}/worklog/
Step 2:
Loop through all worklog to find the most recent one that you are going to update, and retrieve the timeSpentSeconds and id.
Step 3
Update the worklog using this rest request as a PUT request
https://{server}/rest/api/3/issue/{key}/worklog/{id}?adjustEstimate=new&newEstimate={minutes}
with the following body :
{ "timeSpentSeconds":timeSpentSeconds }
note that you have to send back the timeSpentSeconds with the same number it had before the update to ensure the request call works.
Hope this helps anybody with the same problem that I had.
If anyone have a solution that doesn't require updating a previous worklog, feel free to add a new answer.
QUESTION
I have an endpoint in my node backend in which will need to retrieve for each item in my Adhoc collection from my local database the _id
along with a number value which I need to calculate from the body of a request()
function in an array of objects. The objects will be like this
ANSWER
Answered 2019-Nov-29 at 13:05You can use async and await along with request-promise-native to loop over your objects and get the list of results you wish to have.
You can call the readEstimates function in a express.get( ).. handler as long as the handler is asynchronous (or you can use readEstimates().then(..)).
Now, we will wrap an error handler around the readEstimates call since, this could potentially throw an error.
For example:
QUESTION
I need to convert a field that has ISO 8601 duration in a varchar
field to a decimal value representing that duration in hours.
How would I do a SELECT
using the following data so results come back with the row values of 8.0 (PT8H0M
), 7.5 (PT7H30M
) and 1.0 (PT1H0M
) for the duration field?
ANSWER
Answered 2019-Nov-07 at 05:16There is no built-in function I'm afraid. I just wrote one, which is fully inlineable ad-hoc SQL - but it won't be fast...
You can try this:
QUESTION
I'm trying to set up sessions in my node.js app. In order to do that I'm using the modules "express","express-session" and "express-mysql-session" to store them in a database on my server. My code works absolutely fine as long as I'm only accessing the req.session parameters inside the route the session is created. In other routes (or even the startup file) the created parameters throw an undefined error.
I've already tried to create the app.use(session(...)) in the startup file. If I do that everything works fine and the parameters that are created in some route are also usable in other routes. But since I want to keep the startup file as small as possible these lines of code should be handled in a route.
Here is my code: login.js (a route)
...ANSWER
Answered 2019-Oct-11 at 00:01req.session
will only be available in routes that occur AFTER the session middleware executes (order dependent). And, if the session middleware is only on one router, then that req.session
will only be available in routes that that match that router and only after that router runs on a given request.
So, if you want req.session
valid across all your routes, the middleware needs to be defined early and in a way that the middleware runs on all possible routes (that you want to use it on), not only in some routers that only run on some paths.
Remember, it is your session middleware that sets req.session
on any given incoming request. It has to run on a given request before you want to access req.session
.
You don't have to put your session middleware into your startup file directly. You can still put it in its own module, you just have to load that module from the startup file and pass it the app
object so it can initialize the global middleware before any of your routes.
Here's an example startup file:
QUESTION
I'm trying to connect my node.js application to a mySQL database, but it seems like the callback functions of con.connect()
and con.query()
are not executed.
This is the connection part of my code:
ANSWER
Answered 2019-Oct-01 at 21:48The callback code runs asynchronously from the rest of your method. You need to run the code in each successive callback, or use async/await or promises.
The simplest adjustment with your existing code (freehanded, may have syntax errors):
QUESTION
I am populating a list in Page_Load that I want to access later to bind a ddl.
I have tried to get the values using this however the list seems to be empty.
...ANSWER
Answered 2019-Aug-21 at 17:51You have two separate lists: EmployeeDDL
and employeeDDLs
. You are trying to use employeeDDLs
as the data source for your dropdown:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install timetracking
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page