Skip to content

Commit b140af0

Browse files
committed
refactor(ci-pr.yml): fixing this branches' ci-pr yml
Signed-off-by: kpoorman <kjp@codefriar.com>
1 parent 19f70e5 commit b140af0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+669
-674
lines changed

.github/workflows/ci-pr.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,8 @@ jobs:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
3232
with:
33-
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
34-
#github_token: ${{ secrets.GITHUB_TOKEN }}
35-
github_pr_id: ${{ github.event.number }}
36-
# openai_engine: "text-davinci-002" #optional
37-
openai_temperature: 0.5 #optional
38-
openai_max_tokens: 2048 #optional
39-
mode: file # file or patch
33+
debug: false
34+
review_comment_lgtm: false
4035

4136
# Formatting only runs on human-submitted and Dependabot PRs
4237
format-and-linting:

docs/BulkCallable.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Provides a similar interface to Callable, but bulkified to handle multiple sets
66

77
## Methods
88

9-
### `public List call(String methodName, List<Map<String,Object>> parameters)`
9+
### `public List<Object> call(String methodName, List<Map<String,Object>> parameters)`
1010

1111
Implementing classes must implement this method signature.
1212

@@ -19,8 +19,8 @@ Implementing classes must implement this method signature.
1919

2020
#### Returns
2121

22-
| Type | Description |
23-
| ------------ | --------------------------------------------------- |
24-
| List<Object> | List<Object> The results of the called Apex methods |
22+
| Type | Description |
23+
| -------------- | --------------------------------------------------- |
24+
| `List<Object>` | List<Object> The results of the called Apex methods |
2525

2626
---

docs/CanTheUser.md

Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ A method to determine if the running user can perform the specified CRUD operati
3939

4040
#### Returns
4141

42-
| Type | Description |
43-
| ------- | ----------------------------------------------------------------------------------------- |
44-
| Boolean | Boolean true if the user can perform the specified CRUD operation on the specified object |
42+
| Type | Description |
43+
| --------- | ----------------------------------------------------------------------------------------- |
44+
| `Boolean` | Boolean true if the user can perform the specified CRUD operation on the specified object |
4545

4646
#### Example
4747

@@ -64,9 +64,9 @@ a list accepting version of the crud method. It returns CRUD results for the fir
6464

6565
#### Returns
6666

67-
| Type | Description |
68-
| ------- | ------------------------------------------------------------------------------------------------- |
69-
| Boolean | Boolean true if the user can perform the specified CRUD operation on the first object in the list |
67+
| Type | Description |
68+
| --------- | ------------------------------------------------------------------------------------------------- |
69+
| `Boolean` | Boolean true if the user can perform the specified CRUD operation on the first object in the list |
7070

7171
### `private static Boolean crud(String objectName, CrudType permission)`
7272

@@ -83,9 +83,9 @@ A method to determine if the running user can perform the specified CRUD operati
8383

8484
#### Returns
8585

86-
| Type | Description |
87-
| ------- | ----------------------------------------------------------------------------------------- |
88-
| Boolean | Boolean true if the user can perform the specified CRUD operation on the specified object |
86+
| Type | Description |
87+
| --------- | ----------------------------------------------------------------------------------------- |
88+
| `Boolean` | Boolean true if the user can perform the specified CRUD operation on the specified object |
8989

9090
### `public static Boolean create(SObject obj)`
9191

@@ -99,9 +99,9 @@ convenience api for determining if the running user can create the specified obj
9999

100100
#### Returns
101101

102-
| Type | Description |
103-
| ------- | -------------------------------------------------------- |
104-
| Boolean | Boolean true if the user can create the specified object |
102+
| Type | Description |
103+
| --------- | -------------------------------------------------------- |
104+
| `Boolean` | Boolean true if the user can create the specified object |
105105

106106
#### Example
107107

@@ -121,9 +121,9 @@ convenience api for determining if the running user can create the specified obj
121121

122122
#### Returns
123123

124-
| Type | Description |
125-
| ------- | ---------------------------------------------------------------- |
126-
| Boolean | Boolean true if the user can create the first object in the list |
124+
| Type | Description |
125+
| --------- | ---------------------------------------------------------------- |
126+
| `Boolean` | Boolean true if the user can create the first object in the list |
127127

128128
### `public static Boolean create(String objName)`
129129

@@ -137,9 +137,9 @@ convenience api for determining if the running user can create the specified obj
137137

138138
#### Returns
139139

140-
| Type | Description |
141-
| ------- | -------------------------------------------------------- |
142-
| Boolean | Boolean true if the user can create the specified object |
140+
| Type | Description |
141+
| --------- | -------------------------------------------------------- |
142+
| `Boolean` | Boolean true if the user can create the specified object |
143143

144144
#### Example
145145

@@ -159,9 +159,9 @@ convenience api for determining if the running user can read / access the specif
159159

160160
#### Returns
161161

162-
| Type | Description |
163-
| ------- | ------------------------------------------------------ |
164-
| Boolean | Boolean true if the user can read the specified object |
162+
| Type | Description |
163+
| --------- | ------------------------------------------------------ |
164+
| `Boolean` | Boolean true if the user can read the specified object |
165165

166166
#### Example
167167

@@ -181,9 +181,9 @@ convenience api for determining if the running user can read / access the specif
181181

182182
#### Returns
183183

184-
| Type | Description |
185-
| ------- | ------------------------------------------------------ |
186-
| Boolean | Boolean true if the user can read the specified object |
184+
| Type | Description |
185+
| --------- | ------------------------------------------------------ |
186+
| `Boolean` | Boolean true if the user can read the specified object |
187187

188188
### `public static Boolean read(String objName)`
189189

@@ -197,9 +197,9 @@ convenience api for determining if the running user can read the specified objec
197197

198198
#### Returns
199199

200-
| Type | Description |
201-
| ------- | ------------------------------------------------------ |
202-
| Boolean | Boolean true if the user can read the specified object |
200+
| Type | Description |
201+
| --------- | ------------------------------------------------------ |
202+
| `Boolean` | Boolean true if the user can read the specified object |
203203

204204
#### Example
205205

@@ -219,9 +219,9 @@ convenience api for determining if the running user can edit / update the specif
219219

220220
#### Returns
221221

222-
| Type | Description |
223-
| ------- | ------------------------------------------------------ |
224-
| Boolean | Boolean true if the user can edit the specified object |
222+
| Type | Description |
223+
| --------- | ------------------------------------------------------ |
224+
| `Boolean` | Boolean true if the user can edit the specified object |
225225

226226
#### Example
227227

@@ -241,9 +241,9 @@ convenience api for determining if the running user can edit / update the specif
241241

242242
#### Returns
243243

244-
| Type | Description |
245-
| ------- | ------------------------------------------------------ |
246-
| Boolean | Boolean true if the user can edit the specified object |
244+
| Type | Description |
245+
| --------- | ------------------------------------------------------ |
246+
| `Boolean` | Boolean true if the user can edit the specified object |
247247

248248
### `public static Boolean edit(String objName)`
249249

@@ -257,9 +257,9 @@ convenience api for determining if the running user can edit the specified objec
257257

258258
#### Returns
259259

260-
| Type | Description |
261-
| ------- | ------------------------------------------------------ |
262-
| Boolean | Boolean true if the user can edit the specified object |
260+
| Type | Description |
261+
| --------- | ------------------------------------------------------ |
262+
| `Boolean` | Boolean true if the user can edit the specified object |
263263

264264
#### Example
265265

@@ -279,9 +279,9 @@ convenience api for determining if the running user can upsert (insert and updat
279279

280280
#### Returns
281281

282-
| Type | Description |
283-
| ------- | -------------------------------------------------------- |
284-
| Boolean | Boolean true if the user can upsert the specified object |
282+
| Type | Description |
283+
| --------- | -------------------------------------------------------- |
284+
| `Boolean` | Boolean true if the user can upsert the specified object |
285285

286286
#### Example
287287

@@ -301,9 +301,9 @@ convenience api for determining if the running user can edit / update the specif
301301

302302
#### Returns
303303

304-
| Type | Description |
305-
| ------- | -------------------------------------------------------- |
306-
| Boolean | Boolean true if the user can upsert the specified object |
304+
| Type | Description |
305+
| --------- | -------------------------------------------------------- |
306+
| `Boolean` | Boolean true if the user can upsert the specified object |
307307

308308
### `public static Boolean ups(String objName)`
309309

@@ -317,9 +317,9 @@ convenience api for determining if the running user can upsert the specified obj
317317

318318
#### Returns
319319

320-
| Type | Description |
321-
| ------- | --------------------------------------------------------- |
322-
| Boolean | Boolean true if the user can upsert the specified objects |
320+
| Type | Description |
321+
| --------- | --------------------------------------------------------- |
322+
| `Boolean` | Boolean true if the user can upsert the specified objects |
323323

324324
#### Example
325325

@@ -339,9 +339,9 @@ convenience api for determining if the running user can delete/destroy the speci
339339

340340
#### Returns
341341

342-
| Type | Description |
343-
| ------- | -------------------------------------------------------- |
344-
| Boolean | Boolean true if the user can delete the specified object |
342+
| Type | Description |
343+
| --------- | -------------------------------------------------------- |
344+
| `Boolean` | Boolean true if the user can delete the specified object |
345345

346346
#### Example
347347

@@ -361,9 +361,9 @@ convenience api for determining if the running user can delete the specified obj
361361

362362
#### Returns
363363

364-
| Type | Description |
365-
| ------- | -------------------------------------------------------- |
366-
| Boolean | Boolean true if the user can delete the specified object |
364+
| Type | Description |
365+
| --------- | -------------------------------------------------------- |
366+
| `Boolean` | Boolean true if the user can delete the specified object |
367367

368368
### `public static Boolean destroy(String objName)`
369369

@@ -377,9 +377,9 @@ convenience api for determining if the running user can delete the specified obj
377377

378378
#### Returns
379379

380-
| Type | Description |
381-
| ------- | -------------------------------------------------------- |
382-
| Boolean | Boolean true if the user can delete the specified object |
380+
| Type | Description |
381+
| --------- | -------------------------------------------------------- |
382+
| `Boolean` | Boolean true if the user can delete the specified object |
383383

384384
#### Example
385385

@@ -400,17 +400,17 @@ public static method to determine if a given field on a given object is Accessib
400400

401401
#### Returns
402402

403-
| Type | Description |
404-
| ------- | ----------------------------------------------------------------------------- |
405-
| Boolean | Boolean true if the user can read the specified field on the specified object |
403+
| Type | Description |
404+
| --------- | ----------------------------------------------------------------------------- |
405+
| `Boolean` | Boolean true if the user can read the specified field on the specified object |
406406

407407
#### Example
408408

409409
```apex
410410
System.debug(CanTheUser.flsAccessible('Account', 'Name'));
411411
```
412412

413-
### `public static Map bulkFLSAccessible(String obj, Set<String> fields)`
413+
### `public static Map<String,Boolean> bulkFLSAccessible(String obj, Set<String> fields)`
414414

415415
bulk form of flsAccessible
416416

@@ -423,9 +423,9 @@ bulk form of flsAccessible
423423

424424
#### Returns
425425

426-
| Type | Description |
427-
| ------------------- | ----------------------------------------------------------------------------------------- |
428-
| Map<String,Boolean> | `Map<String, Boolean>` where the key is the field name and the value is the accessibility |
426+
| Type | Description |
427+
| --------------------- | ----------------------------------------------------------------------------------------- |
428+
| `Map<String,Boolean>` | `Map<String, Boolean>` where the key is the field name and the value is the accessibility |
429429

430430
#### Example
431431

@@ -447,17 +447,17 @@ public static method to determine if a given field on a given object is Updatabl
447447

448448
#### Returns
449449

450-
| Type | Description |
451-
| ------- | ------------------------------------------------------------------------------- |
452-
| Boolean | Boolean true if the user can update the specified field on the specified object |
450+
| Type | Description |
451+
| --------- | ------------------------------------------------------------------------------- |
452+
| `Boolean` | Boolean true if the user can update the specified field on the specified object |
453453

454454
#### Example
455455

456456
```apex
457457
System.debug(CanTheUser.flsUpdatable('Account', 'Name'));
458458
```
459459

460-
### `public static Map bulkFLSUpdatable(String obj, Set<String> fields)`
460+
### `public static Map<String,Boolean> bulkFLSUpdatable(String obj, Set<String> fields)`
461461

462462
bulk form of flsUpdatable call
463463

@@ -470,9 +470,9 @@ bulk form of flsUpdatable call
470470

471471
#### Returns
472472

473-
| Type | Description |
474-
| ------------------- | ---------------------------------------------------------------------------------------- |
475-
| Map<String,Boolean> | `Map<String, Boolean>` where the key is the field name and the value is the updatability |
473+
| Type | Description |
474+
| --------------------- | ---------------------------------------------------------------------------------------- |
475+
| `Map<String,Boolean>` | `Map<String, Boolean>` where the key is the field name and the value is the updatability |
476476

477477
#### Example
478478

@@ -495,11 +495,11 @@ Abstracted method for retrieving or calculating (memoization) of the FLS for a g
495495

496496
#### Returns
497497

498-
| Type | Description |
499-
| ------- | ----------- |
500-
| Boolean | `Boolean` |
498+
| Type | Description |
499+
| --------- | ----------- |
500+
| `Boolean` | `Boolean` |
501501

502-
### `private static Map calculateFLS(String objType)`
502+
### `private static Map<String,Map<FLSType,Boolean>> calculateFLS(String objType)`
503503

504504
Calculates the FLS for a given object type
505505

@@ -511,9 +511,9 @@ Calculates the FLS for a given object type
511511

512512
#### Returns
513513

514-
| Type | Description |
515-
| -------------------------------- | ------------------------------------ |
516-
| Map<String,Map<FLSType,Boolean>> | `Map<String, Map<FLSType, Boolean>>` |
514+
| Type | Description |
515+
| ---------------------------------- | ------------------------------------ |
516+
| `Map<String,Map<FLSType,Boolean>>` | `Map<String, Map<FLSType, Boolean>>` |
517517

518518
---
519519

docs/CanTheUserTests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Methods
66

7-
### `private static List generateAccounts()`
7+
### `private static List<Account> generateAccounts()`
88

99
### `private static void canCrudAccountCreatePositive()`
1010

0 commit comments

Comments
 (0)