reviewer | PHP library for track App Store reviews with Slack | Monitoring library
kandi X-RAY | reviewer Summary
kandi X-RAY | reviewer Summary
Simple library to track App Store reviews with Slack.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Send review messages .
- Get reviews by country .
- Get reviews .
- Send the reviews .
- Sets the logger .
- Set the slack settings .
- Set storage .
reviewer Key Features
reviewer Examples and Code Snippets
try {
$storage = new Predis\Client();
$reviewer = new TJ\Reviewer({APPID});
$reviewer->setStorage($storage);
$reviewer->setSlackSettings(['endpoint' => 'https://hooks.slack.com/services/ABCDE/QWERTY', 'channel' => '#revie
try {
$reviewer = new TJ\Reviewer({APPID});
...
$reviewer->countries = ['ru' => 'Russia', 'us' => 'US', 'fi' => 'Finland', 'fr' => 'France'];
$reviewer->start();
} catch (Exception $e) {
// handle errors
}
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
$monolog = new Logger('Reviewer');
$monolog->pushHandler(new StreamHandler('/tmp/reviewer.log', Logger::DEBUG));
$reviewer->setLogger($monolog);
Community Discussions
Trending Discussions on reviewer
QUESTION
I've got a latex document that I publish as a pdf, but I need to share it with reviewers in Word .docx format. I've got some images and a bunch of graphs in tikz format in a separate .tex files in a figures subfolder. I've defined input@path{{figures/}}
so that I don't have to put the path into each \input{blah.tex}
call. This works just fine when I publish the document as a pdf, but when I try to use pandoc to create the docx I get a [WARNING] Could not load include file
error for the .tex files, though the images load fine.
As far as I can tell, pandoc should be able to load files from subfolders and the input@path should set it up (this post discuses how to use pandoc parameters to define the input@path).
I'm sure this is some basic lack of understanding on my part, but here's a minimum non-working example:
example.tex:
...ANSWER
Answered 2021-Jun-12 at 06:57Pandoc does not support the \input@path
parameter. You could open a feature request here.
I suggest to use TeX to compile the TikZ packages into proper graphics, e.g. with the method described in this Q&A, then use \renewcommand
to change \input
to \includegraphics
, which pandoc will understand. This will also allow to make use of the --resource-path
option.
QUESTION
Most of the teams I've worked on in the past have followed the same workflow when using Git (with some tiny variations):
- Pull the
develop
branch (git checkout develop
) - Create a new feature branch off of it (
git checkout -b feature/XYZ-123
) - Do your work
- When you are ready to create a PR, add and commit your changes (
git add . && git commit -m "some commit message"
), then checkdevelop
back out, pull it (git checkout develop && git pull
) - Switch back over to your feature branch and merge
develop
into it (git checkout feature/XYZ-123 && git merge develop
) - Finally push (
git push -u origin feature/XYZ-123
) and create a PR
We'll call this the "Merge Method". The benefits are that any changes to develop
since you created the branch are now merged into your branch. And so by the time you create a PR, there are no merge conflicts with develop
and the code reviewers can see a clean, conflict-free diff between your branch and develop
.
I am now working on a team that has a similar flow up until the merge step, but then instead of merging develop
into my feature branch, they ask for a rebase from origin/develop
. So the actual steps are:
git checkout develop
git checkout -b feature/XYZ-123
- Do your work
git add . && git commit -m "some commit message"
git checkout develop && git pull
git checkout feature/XYZ-123
- Rebase from
origin/dev
git push -u origin feature/XYZ-123
We'll call this the "Rebase Method". It too produces merge conflict-free PRs, but obviously it must have different pros/cons from the Merge Method explained up above.
I'm wondering what those pros/cons are. What does the Merge Method lend itself to that the Rebase Method lacks, and vice versa? When should one method be used as opposed to the other?
...ANSWER
Answered 2021-Jun-11 at 01:57but obviously it must have different pros/cons from the Merge Method explained up above
Not really. Between reverse merging (as I call it) and rebasing, it's exactly the same effect in the end, namely to try to pick up all the most recent changes from develop
so that (1) the feature branch can be tested accurately and (2) the chances of a merge conflict when merging into develop
are reduced.
The main visible difference between reverse merging and rebasing is the lack of the extra merge commit on the feature branch. That makes rebasing appealing. So:
- Rebasing looks a lot cleaner in the history, because you appear to have started the branch from a much more recent state of
develop
.
But here are some counterclaims:
If there's an incoming conflict, rebasing makes it harder to resolve those conflicts.
You can't rebase after pushing to form the pull request, because that rewrites shared history; whereas you can reverse merge at any time.
Personally I use both! I rebase just before the initial push to form the pull request; if the pull request lives a long time, I reverse merge periodically, and especially just before the actual approval and merge.
QUESTION
So, I created a pull request in my ticket-3
branch and my reviewer reviewed and found one minor thing for me to change. I've made this change, pushed the commit, and now just waiting for the reviewer to approve the merge request. I'm confident that no other changes are to be made for the pull request and would like to work on a feature in my app.
What is the best way to go about this? Should I create another branch from my ticket-3
branch? If I do this, what happens to the new branch once the ticket-3
branch has merged with the main
branch?
I'm sure there is a common practice for this, however I haven't had a dev job yet so not sure what it could be. I also found this, but the answer doesn't appear to be a branched branch...
Thanks and appreciate the help.
...ANSWER
Answered 2021-Jun-10 at 05:23If you make a branch from ticket-3
, while ticket-3
is merged (non-fast-forward) with main
, you will have to rebase it on top of main
eventually.
QUESTION
I recently made a pull request at my company and got feedback on some code that I had written and I wanted some other opinions on this.
We have an component called Icon
that can take another component as a prop like so:
this simply renders the following:
...ANSWER
Answered 2021-Jun-10 at 09:45Arrow functions are anonymous
and will be re-instantiated on every render.
If you create a named component, it will have a reference and will not be re-rendered by React unless and until required (through state update).
And also, as you mentioned, it provides better readability
and an option for code splitting
.
QUESTION
I am trying to figure out which type of payment is the most appropriate for a given situation. I am pretty sure there must already be a similar question somewhere but I seem to be asking wrong questions when searching for it.
Application will give user ability to store and manage any amount of certain data type for free. There will be a paid option to selected certain data for processing. Once done processing the output of process will be visible for this user within the same application.
As I must not describe a specific situation I will add theoretical example to give better description: We are building an application where user can import images from his gallery. He can have any number of images in application, add more, delete them... There is an option where user may select a single photo and send it to our service for processing. Once processing is done another photo will be returned which has all faces on image blurred out.
So which type of payment is most appropriate in this case and which types are completely out of question? This is what we considered so far:
Subscription
We do not want subscription because we expect that users will use this feature every now and then. Basically we expect most users to only use it once. If a user uses this feature 10 times we already consider him as a power user. We also expect that this usage will be stretched over years, not days (So someone may use it once a year). For that reason we can expect that users would need to subscribe, use the feature, unsubscribe.
None-consumable IAP
Initially this sounded like a most fitting solution. But the problem is that we would need to offer personalized items for each user to utilize this. I am not even sure if this is doable; create a new IAP item for every request that user makes.
Another idea was to buy the same IAP multiple times. As far as I understand this is not possible. However, I have seen an app that had IAP in place and had an option to "donate" using IAP multiple times. Now sure how they made that possible but now I'm thinking that they spawned some number of IAP items, all with same description and price and users would be iterating through them when donating multiple times. We could do a similar approach but it does not feel right.
Consumable IAP
This one seems technically doable but is this correct? We would create some soft currency which user would be able to buy and consume within his application. I feel like this approach may be rejected by Apple. Plus it may look fishy to users.
Apple Pay
Personally I find this the most correct one. We could implement Apple Pay in our application and user would simply confirm transaction when sending item for processing (or before viewing when received). But is this correct usage of Apple Pay for this case or can we expect some pushback from Apple reviewers that because we use this content only within the application we need to use some from of IAP?
...ANSWER
Answered 2021-Jun-04 at 10:09If each time you repeat the operation you must pay it is a consumable. If the first time you pay the feature is unlocked for life it is a non-consumable.
You are not allowed to use Apple Pay if you are selling a digital good. There are exceptions like a 1 to 1 digital meeting, coaching, appointment but doesn't sounds like it.
Note that you can purchase multiple consumables at the same time.
I wrote an article about that categorisation and other stuff and gave some other examples. Have a look at the "Define your products" section.
QUESTION
In Azure DevOps is their a way to gather a list of repositories that enforce "Required Reviewers on pull requests and for what branches?
...ANSWER
Answered 2021-Jun-03 at 03:14You can use Configurations - List rest to get the repositories and branches that enforces "Required Reviewers" on pull requests.
QUESTION
I leak a credentials on a file in my feature branch. A reviewer caught the mistake, showing the hash commit, lets call it a6859b6
, when the bad info was introduced and asked me to safely remove. I edited the file, squashed all commits in my branch and forced push.
Then the PR got approved, and merged into master. My branch is deleted on remote and locally. The commit log of master doesn't show any presence of the "bad" commit a6859b6
Surprisingly, querying remote on the exact commit hash https://gitlab.com/blabla/-/commit/a6859b6 still show the offending code.
Is it by design? How do we call this kind of "orphan" commits? What does git do with these and is it possible to purge a specific orphan commit?
EDIT: GitLab answered to my support ticket
Advise to rotate the leak creds.
GitLab has a housekeeping process which prunes the loose commits on the remote repo automatically every 2 weeks
ANSWER
Answered 2021-May-31 at 18:57Is it by design?
Yes, git does not instantly delete objects once they are not referenced. This may be done eventually by the GC (git gc
). Not instantly removing such references makes it easy for you to recover lost data using git reflog
(as long as you have added/committed the data previously).
How do we call this kind of "orphan" commits?
You can call them loose objects/commit. This name is also used in the docs.
What does git do with these and is it possible to purge a specific orphan commit?
Git may eventually decide to clean these up (depending on gc.auto
). This can also be done manually by running git gc --prune=now
in the repository where you want to remove it (you need shell access). If you have a long reference chain referencing the object that is not referenced any more, you may want to add --aggressive
: git gc --aggressive --prune=now
.
If you don't have direct access, you could mirror the repository, run git gc --prune=now
, delete the remote repository, recreate an empty repository and push everything from your local mirror.
Anyways, I would strongly recommend you to change/invalidate the leaked credentials as soon as possible as people could already have downloaded your commit (and the reviewer has seen those, too). When you are sure that your leaked credentials are not valid anywhere, you don't need to worry about unreferenced commits.
QUESTION
I'm using Azure DevOps with free Subscriptions
and currently when i tried to add reviewers
in one of my project, it always fails with below error.
Failed to create pull request: The reviewer user@gmail.com does not have permission to view this pull request
Already user user@gmail.com
added under Project settings > Permissions > Project Administrators
group.
Project administrators permission is not sufficient to deal with pull request?
...ANSWER
Answered 2021-Jun-01 at 16:48Did you assign a Basic license to the user? Every subscription has 5 Basic licenses for free. Follow the steps below if you have not done that yet:
- Go to
https://dev.azure.com/orgname
- Click on Organization Settings
- Go to Users and on the right hand, click Add Users
- Select Basic license
- Under Projects, choose your project and give the user Project Administrator permission.
QUESTION
I am working on a project where I want to add different reviewers for different branch of my repository.
I generally add reviewers with this command:
...ANSWER
Answered 2021-May-27 at 12:56At least one problem is in how you construct your hashtable:
Do not include embedded '...'
-quoting in the entry values; syntactic quoting, during entry definition, is sufficient (you could use single-quoting here, given that the values don't reference PowerShell variables):
QUESTION
I am trying to append two tables together, they don't have quite the same columns but contain data for the same clients. the table called "outcome" contains survey results from clients collected in 1 month and the table "checkpoint" contains survey results from clients collected six months after. I tried to append those two tables and ensured that there is the same number of columns by introducing NULL columns so that the number of columns match in both tables here is my query:
...ANSWER
Answered 2021-May-18 at 18:16The columns in your two CTEs are in different orders. For example, in the first CTE Reviewer
is the 8th column, but in the second CTE it's the 9th column. That's causing different datatypes to be in matching positions, not just what looks like non-matching data.
When you do:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install reviewer
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