Manually setting the status value of the status value in the fineuploader object - fine-uploader

I am using the scalling function to send two smaller images while enabling the hideScaled:true.
This is working fine but the issue is when deleteing a file the itemLimit option is not working correct.
I understand why and I want to know if I can manual set the groupId ids to "deleted" when I delete an image from the API.
I did not see anywhere I could call the API to set the status so I could set that all three items had been delete when they only clicked the delete option for the image being displayed.
Thanks.

No, you cannot manually change the internal status for files. If you want all items in the group to be reported as deleted, then you will need to actually delete them via the API. See the deleteFile API method for details.

Related

Missing GA4 event parameters

I have recently started to use Google Analytics 4 for event tracking, using Google Tag Manager to send events to Analytics. I have set up the custom variables in Tag Manager as well as in GA4.
Everything seems to work very well in Tag Manager's debug mode, and also if I look up the events in real-time view I get the requested event along with all the parameters I have set in Tag Manager. However, once I look up the events for the last couple of days in the Engagement -> Event view, a couple of my parameters are missing, and also I'm not getting the same hit count for each parameter, even though each event has all parameters set:
As you can see, 86 events have been recorded, but the event count for the parameters widely varies.
Here's a screenshot of my Tag manager settings:
I have tried to set up a new event with the same parameters, but (logically) I got the same result. I am under the strong impression I'm missing something obvious here. Does anyone have experience with this, or has anyone come across this same issue?
To be honest, you can just try to click on mark as conversion in the Events tab, and this should save them. I think for some reason GA4 doesn't save parameters otherwise...
i cant get this til work with fields and parameters for an event so i try to create a user custom dimension instead and also to send it as a content group and as user property
also i can see the user id under app instance for the standard report user explorer
but i can't filter on or select this one myself
i cant create the custom parameter reports like gerrit did
but yeah create them as custom dimensions /metric first should be the way
ga4 has a bug when you edit a standard report, you add 3 card and deselect one it still thinks you are maxed out and you have to start over...
the test internal users filters dont work, though you can see data in debug and under events, but since i know they work i know try to just make the filters active

How to create a Checkpoint in UFT

Strange enough that I have to ask such a simple question.
I started automating with UFT and I suppose the correct way to check if for instance my login has worked is to add a checkpoint on the next page.
But how do I do that?
All info I get from google is on how to add an already existing checkpoint to may page. But I don't have any.
Here is how I go about automating:
I add manually the relevant objects to the object repository
I create parameters for my action
I create the code that does the steps on the page
one action per page seems to be fine for me
But in the Object Repository of UFT 14.53, there is no button to add a Checkpoint.
A workaround for me would be to just add another Object and check it's existence and forget about checkpoints. Until I hopefully get an answer here, I will try to do just that.
In UFT there are typically two ways to verify that things are working as expected.
Flow (implicit) - In order to verify that progress in the application is successful (e.g. login) one usually just keeps working with the app, assuming that if the previous step failed, the objects needed for the next steps won't exist and the test will fail due to ObjectNotFound errors
State (explicit) - In order to see that objects have a specific state, checkpoints are usually used. Checkpoints are typically added during a record session, I'm not sure if there's a way to add them directly to the repository. An alternative to checkpoints, which works better with keyword driven testing (no recording), is to use the built in CheckProperty method.

How to detect a photo has been modified through Google Photos API?

Getting the list of MediaItems can be done through Google Photos API as well as getting the MediaItem metadata as well as the media item itself.
What if the picture was modified online (e.g. brightness/contrast), then saved?
The MediaItem does not contain something like a hash-code.
How to detect if the photo has been modified?
Does Google Photos API support this use case and how?
There is currently no ability to see if a file was changed in the Google Photos api.
There is however a feature request for this currently Provide Modified Date in metadata which might be along what you are looking for.
As suggested in a comment you could probably do this yourself using MD5 but its not going to help you if you want the api to tell you if theres been a change your going to have to test the md5
Even though DalmTo's answer is true, there is a workaround to this issue.
The HTTP Content-Length header is set with every response when downloading a media item, so one can "probe" the actual media item and stop downloading.
The Content-Length value is the value the item would have as file size after downloading. Assuming changes don't end up having the same file size, this value will be different if a file has been changed (cropped, rotated, etc...).

Call services from workflow

I am trying to set up a workflow were the content item is either deleted or moved to another folder, if rejected. No wfFunctions seems to be able to do this, only thing related to deleting content is the services, specifically the DELETE_DOC service. But i can't seem to figure out how to call it from the workflow step.
Related question: I have tried to wfUpdateMetaData on the xCollectionID, with no result. Is there a metadata/path i can change to move the file.
Thank you in advance
You should be able to move the item by updating the folder. Note that wfUpdateMetaData will only update the latest revision.
Some additional reading:
https://jonathanhult.com/blog/2015/10/update-folder-during-workflow-webcenter-content/
https://bitbucket.org/mythics/bypassworkfloweditrestrictions

How do I delete config data with a button?

So after the user saves config, let's say they now want to delete the config data. I think i should be running the delete method in the model but I am unsure how to attach it to a button. I tried having the button go to a controller action which uses getModel and runs its delete method then it redirects back to the config page but it didnt work and how can I set a success message so that it will show up after a redirect ?
Conventionally, Magento config data does not get removed from the database unless it is writeable at higher scope than the scope being deleted - ref Mage_Adminhtml_Model_Config_Data::save(). It is more appropriate to treat an empty field as "value not set".
If fields are to be removed as part of a change in module version, it's possible to do this through Mage_Core_Model_Resource_Setup::deleteConfigData().

Resources