I periodically need to add more than 10 people to MR and I do it manually. I add only one person at a time, through the search. Can I somehow add the whole team to the reviewers?
This does not seem to be supported, and could be added as a feature request, to be referenced in Epic: Merge request reviewers.
The alternative is to use quick actions, with GitLab 13.7+ (issue 241244)
But that presupposes you know the users' names beforehand.
Related
What event do I use best to hide a product from customer?
I would like to show some products only to a customer group. Normal users should not be able to see them.
I would start with subscribing the
ProductListingCriteriaEvent
this at least should allow you do filter out the products you want to hide for product listings.
I believe this still would allow to show the detail pages, so you also should hook into
ProductPageLoadedEvent
and make your customer group checks.
Last but not least, you will probably run into caching problems, i.e. the page would be cached for the normal users, and the specific customer group would get the cached results, which still do not include "their" products.
We ran into that here: Shopware 6: Changing URL parameters returns the same result in prod mode
The solution for this would probably to subscribe to the ProductListingRouteCacheKeyEvent
$event->addPart((string)($currentCustomerGroup ? 'null'));
Also you might need to take care of hiding from the search.
This problem seems to be already solved with a paid plugin (https://store.shopware.com/en/acris84338660411/block-products-for-customer-groups.html) - but in case you implement it on your own, it would be cool if you publish your solution on GitHub :-)
This seems to be available in future Shopware 6 versions as "Dynamic access" feature.
We have monorepo, my team responsible for 3 of 20 packages/folder of repository, but sometimes we need to touch others packages/folders.
For reviewing teammates changes every member should add “team_label” for ability to filter by this label or to keep opened several tabs with merge requests for each author/team member.
Preferable could be filtering MRs something like this by one of the author:
author: username1 OR author:username2 OR author:username3
We are using GitLab Enterprise Edition 12.6.2-ee
upd:
discussed in gitlab docs comments and there is no ability to filter merge requests even with advanced search
Advanced Search does currently not have the facets available that you use in the dedicated issue or MR search
https://docs.gitlab.com/ee/user/search/index.html#comment-4776091890
Feature proposal:
https://gitlab.com/gitlab-org/gitlab/issues/7826
To filter merge request and all the other kind of thing you want to search for you can read this guide on how to search with filters:
GitLab Filter Guide
Anyway if you want a quick suggestion you have to go in the "Merge request" section of your sidebar menu. After that, you can see on the upper part of the tables where all the merge request are listed a little search bar that says "Search or filter results..." if you click on that a little dropdown opens up to suggest you how to use the search bar.
To search in a list of all the authors you have to input the following: author: (this will let you see a little dropdown with all the authors) or you can search directly with an author name putting a "#" before his name.
If you want to concatenate more filter criteria you have to put AND or OR as you would do in a SQL query. But anything is well explained in the guide.
Unfortunately to date you can't search merge requests with an OR query - and although gitlab states that successive clauses should be ANDed together a quick test suggests that in fact an arbitrary single clause is applied.
See e.g. https://forum.gitlab.com/t/mr-filtering-by-multiple-authors/33864
I am using J Developer 12 c. I want to create form but without any data fetched in.I want user to enter detail in form for submission.I have tried all online solution but they are for J Developer 11.I am not able to fetch an empty form.
When I run my form it automatically fetch record from the table.I have tried use create insert but i want form to be automatically fetched with new record every time page is run.
Add a CreateInsert action in your task flow on the way into you page. This will clear the fields for data entry. Look here.
You need to understand the difference between commit and submit. You want to submit the pages - clicking a submit button - and then the page is processed and the EO/VOs are updated in memory.
The Commit operation writes the in-memory changes to the datasource (database). So, you can submit pages 1-3 then using the same data control the fields will be populated with the entered data on page 4. Now the user can commit the changes. The Commit action is located in the operations for the AppModule-DataControl.
This is the power of the ADF Data Control. Changes to fields are cached in memory and are available to any page and then those changes can be committed when you choose. Note, the Task Flow can control the transaction itself.
Sounds like you need to learn the basics of ADF. I suggest this book and this set of resources I maintain for my students and these.
And, if you will be doing a lot of ADF development, it is well worth your time to take our ADF course.
(It also seems you are unaware of how stack overflow works. When you get an response that answers you question, you up-vote the answer, so it encourages those of us taking our time to answer you question for free to continue doing so. Please note that I answered your original question and Shay reinforced that answer.
And I have now answered your second question, and provided links to resources to help you go further.
I already marked the correct answer however my second question where i was unable to commit on review page which fetch data from 3 vo i got solution thanks to http://www.baigzeeshan.com/2010/11/avoiding-jbo-26048-during-commit-in.html.Actually the first Eo is master for rest 2 Eo so it would ideally allow me to commit detail data only after i commit the master.Now i found the blog and it suggested me to do changes in association and add behaviour for composite association and cascade update for key attribute.Now i can directly commit on my last review page and navigate through task flow easily without using commit on eac individual page.thanks all who helped me.
I need to delete some records related to the current record when it is deactivated. I can get the the event when the record is deactivated but I have looked around for some time on Google and this site for the code to delete records in javascript but I can't find any, though I know there must be some out there.
Can anyone help?
Thanks
I would be alright with doing this with a plugin, all I would need to know is how to pick up that the record has been deactivated
You can register a plugin on the SetState and SetStateDynamic messages (recommend the Pre event in your scenario). Each of these messages will pass an EntityMoniker in the InputParameters property bag which refers to the record that is being deactivated.
In your code you will need to:
Check that the new state in the SetState request is deactivated (since of course a record can usually be reactivated and you don't want to try deleting things then too, presumably)
Pick up the EntityMoniker from IPluginExecutionContext.InputParameters
Run your query to identify and delete related records
Exit the plugin to allow the SetState transaction to complete
If you really want to delete a record with JavaScript there is a sample on the MSDN.
Its a little long winded (its a CRUD example - create, retrieve, update & delete). But it should contain the information you need.
Note there is also an example on that page which doesnt use jQuery (if using jQuery is a problem).
That said I think for this operation would will find it easier to implement, test and maintain with a plugin (so I would go for Greg's answer).
Additionally a plugin will apply in all contexts, e.g. if you deactivate the record in a workflow your JavaScript will not run, but a plugin will.
I've just started to look workflows in 2010 which seem pretty good but I can't find seem to find out how do something very simple.
Basically I'm creating a lost property list and workflow, essentially anyone can add a new item to the list for an item that they've found. Next anyone can make a claim on an item in the list which should then email the admins where they can investigate and close claim if the rightful owner has claimed their item.
Should be very simple and would take me no time in .net but not in SharePoint! Any suggestions on how I could do this?
I've been looking at SPD workflow tasks and not really getting anywhere. My next step is to go into VS2010 but this seems overkill for such an easy task.
Thanks
Dan
what is your intention to allow someone to "claim?" are you intending to enable a "claim" as just a flag and a workflow sending emails to the admins?
Create a Yes/No field Claimed with the default value set to false.
Create a SPD Workflow that would start OnItem Create.
In this workflow add an Action that waits till the Claimed Flag is set to true.
Then you can send the email to the administrator (also with an SPD activity).
Optionally you can delete this item from the list after a period of time.
Based on my understanding of your question and the fact that we tried something similar a while back, I have created a blog (my first blog entry!). Below is the link, feel free to leave comments;
http://sp10tech.blogspot.com/2010/10/creating-simple-workflow-using.html
Alternate Idea;
Maybe use two lists. One for items lost and one for claims. This way you can have multiple claims on each lost item. Add a field that references the claims list so the user can select it. Then simply have the administrators use a out of the box alert mechanism. No need for elaborate work flow.