mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
gam print browsers rawfields. Starts #1746
Some checks are pending
Build and test GAM / build (Win64, build, 10, VC-WIN64A, windows-2022) (push) Waiting to run
Build and test GAM / build (aarch64, build, 3, linux-aarch64, ubuntu-24.04-arm) (push) Waiting to run
Build and test GAM / build (aarch64, build, 4, linux-aarch64, ubuntu-22.04-arm) (push) Waiting to run
Build and test GAM / build (aarch64, build, 6, linux-aarch64, ubuntu-22.04-arm, yes) (push) Waiting to run
Build and test GAM / build (aarch64, build, 8, darwin64-arm64, macos-14) (push) Waiting to run
Build and test GAM / build (aarch64, build, 9, darwin64-arm64, macos-15) (push) Waiting to run
Build and test GAM / build (x86_64, build, 1, linux-x86_64, ubuntu-22.04) (push) Waiting to run
Build and test GAM / build (x86_64, build, 2, linux-x86_64, ubuntu-24.04) (push) Waiting to run
Build and test GAM / build (x86_64, build, 5, linux-x86_64, ubuntu-22.04, yes) (push) Waiting to run
Build and test GAM / build (x86_64, build, 7, darwin64-x86_64, macos-13) (push) Waiting to run
Build and test GAM / build (x86_64, test, 11, ubuntu-24.04, 3.10) (push) Waiting to run
Build and test GAM / build (x86_64, test, 12, ubuntu-24.04, 3.11) (push) Waiting to run
Build and test GAM / build (x86_64, test, 13, ubuntu-24.04, 3.12) (push) Waiting to run
Build and test GAM / merge (push) Blocked by required conditions
Build and test GAM / publish (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Check for Google Root CA Updates / check-apis (push) Waiting to run
Some checks are pending
Build and test GAM / build (Win64, build, 10, VC-WIN64A, windows-2022) (push) Waiting to run
Build and test GAM / build (aarch64, build, 3, linux-aarch64, ubuntu-24.04-arm) (push) Waiting to run
Build and test GAM / build (aarch64, build, 4, linux-aarch64, ubuntu-22.04-arm) (push) Waiting to run
Build and test GAM / build (aarch64, build, 6, linux-aarch64, ubuntu-22.04-arm, yes) (push) Waiting to run
Build and test GAM / build (aarch64, build, 8, darwin64-arm64, macos-14) (push) Waiting to run
Build and test GAM / build (aarch64, build, 9, darwin64-arm64, macos-15) (push) Waiting to run
Build and test GAM / build (x86_64, build, 1, linux-x86_64, ubuntu-22.04) (push) Waiting to run
Build and test GAM / build (x86_64, build, 2, linux-x86_64, ubuntu-24.04) (push) Waiting to run
Build and test GAM / build (x86_64, build, 5, linux-x86_64, ubuntu-22.04, yes) (push) Waiting to run
Build and test GAM / build (x86_64, build, 7, darwin64-x86_64, macos-13) (push) Waiting to run
Build and test GAM / build (x86_64, test, 11, ubuntu-24.04, 3.10) (push) Waiting to run
Build and test GAM / build (x86_64, test, 12, ubuntu-24.04, 3.11) (push) Waiting to run
Build and test GAM / build (x86_64, test, 13, ubuntu-24.04, 3.12) (push) Waiting to run
Build and test GAM / merge (push) Blocked by required conditions
Build and test GAM / publish (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Check for Google Root CA Updates / check-apis (push) Waiting to run
This commit is contained in:
@@ -7768,6 +7768,9 @@ def RowFilterMatch(row, titlesList, rowFilter, rowFilterModeAll, rowDropFilter,
|
|||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def getFieldsRaw():
|
||||||
|
return getString(Cmd.OB_FIELDS)
|
||||||
|
|
||||||
# myarg is command line argument
|
# myarg is command line argument
|
||||||
# fieldChoiceMap maps myarg to API field names
|
# fieldChoiceMap maps myarg to API field names
|
||||||
#FIELD_CHOICE_MAP = {
|
#FIELD_CHOICE_MAP = {
|
||||||
@@ -25502,6 +25505,7 @@ def doPrintShowBrowsers():
|
|||||||
csvPF = CSVPrintFile(['deviceId']) if Act.csvFormat() else None
|
csvPF = CSVPrintFile(['deviceId']) if Act.csvFormat() else None
|
||||||
FJQC = FormatJSONQuoteChar(csvPF)
|
FJQC = FormatJSONQuoteChar(csvPF)
|
||||||
fieldsList = []
|
fieldsList = []
|
||||||
|
fields = None
|
||||||
projection = 'BASIC'
|
projection = 'BASIC'
|
||||||
orderBy = 'id'
|
orderBy = 'id'
|
||||||
sortOrder = 'ASCENDING'
|
sortOrder = 'ASCENDING'
|
||||||
@@ -25538,13 +25542,18 @@ def doPrintShowBrowsers():
|
|||||||
fieldsList = []
|
fieldsList = []
|
||||||
elif myarg == 'sortheaders':
|
elif myarg == 'sortheaders':
|
||||||
sortHeaders = True
|
sortHeaders = True
|
||||||
|
elif myarg == 'rawfields':
|
||||||
|
projection = 'FULL'
|
||||||
|
fields = getFieldsRaw()
|
||||||
elif getFieldsList(myarg, BROWSER_FIELDS_CHOICE_MAP, fieldsList, initialField='deviceId'):
|
elif getFieldsList(myarg, BROWSER_FIELDS_CHOICE_MAP, fieldsList, initialField='deviceId'):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
FJQC.GetFormatJSONQuoteChar(myarg, True)
|
FJQC.GetFormatJSONQuoteChar(myarg, True)
|
||||||
if projection == 'BASIC' and set(fieldsList).intersection(BROWSER_FULL_ACCESS_FIELDS):
|
if projection == 'BASIC' and set(fieldsList).intersection(BROWSER_FULL_ACCESS_FIELDS):
|
||||||
projection = 'FULL'
|
projection = 'FULL'
|
||||||
fields = getItemFieldsFromFieldsList('browsers', fieldsList)
|
if not fields:
|
||||||
|
fields = getItemFieldsFromFieldsList('browsers', fieldsList)
|
||||||
|
print(f'fields: {fields}')
|
||||||
if FJQC.formatJSON:
|
if FJQC.formatJSON:
|
||||||
sortHeaders = False
|
sortHeaders = False
|
||||||
substituteQueryTimes(queries, queryTimes)
|
substituteQueryTimes(queries, queryTimes)
|
||||||
|
|||||||
@@ -922,6 +922,7 @@ class GamCLArgs():
|
|||||||
OB_EVENT_ID_ENTITY = 'EventIDEntity'
|
OB_EVENT_ID_ENTITY = 'EventIDEntity'
|
||||||
OB_EVENT_NAME_LIST = "EventNameList"
|
OB_EVENT_NAME_LIST = "EventNameList"
|
||||||
OB_EXPORT_ITEM = 'ExportItem'
|
OB_EXPORT_ITEM = 'ExportItem'
|
||||||
|
OB_FIELDS = 'Fields'
|
||||||
OB_FIELD_NAME = 'FieldName'
|
OB_FIELD_NAME = 'FieldName'
|
||||||
OB_FIELD_NAME_LIST = "FieldNameList"
|
OB_FIELD_NAME_LIST = "FieldNameList"
|
||||||
OB_FILE_NAME = 'FileName'
|
OB_FILE_NAME = 'FileName'
|
||||||
|
|||||||
Reference in New Issue
Block a user