Skip to content

Commit f3aceaa

Browse files
committed
Fixed issue with 6.0.6.1 opt-out project needing to have component specified for oslcquery to work
1 parent e692251 commit f3aceaa

Some content is hidden

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

70 files changed

+14298
-14552
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.8.0
2+
current_version = 0.8.1
33
commit = True
44
tag = True
55

README.md

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

99
SPDX-License-Identifier: MIT
1010

11-
version="0.8.0"
11+
version="0.8.1"
1212

1313

1414
Introduction

elmclient/__meta__.py

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

1010
app = 'elmoslcquery'
1111
description = 'Commandline OSLC query for ELM'
12-
version = '0.8.0'
12+
version = '0.8.1'
1313
license = 'MIT'
1414
author_name = 'Ian Barnard'
1515
author_mail = '[email protected]'

elmclient/_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
class _Config():
3838
configtype = None
3939
def __init__(self, *ags, **kwargs ):
40-
print( f"Config init {self=}" )
40+
logger.info( f"Config init {self=}" )
4141
pass
4242
def is_stream(self):
4343
return self.configtype == STREAM

elmclient/_queryparser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ def dottedname(self,s):
317317

318318
def identifier(self, s):
319319
logger.info( f"Identifier {s=}" )
320-
print( f"Identifier {s=}" )
321320
if len(s) == 1:
322321
if type(s[0])==str:
323322
result = s[0]

elmclient/_rm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def load_components_and_configurations(self,force=False):
379379
return (ncomps, nconfs)
380380

381381
def get_local_config(self, name_or_uri):
382-
print( f"GLC {self=} {name_or_uri=}" )
382+
logger.info( f"GLC {self=} {name_or_uri=}" )
383383
result = None
384384
filter = None
385385
if name_or_uri.startswith("S:"):

elmclient/examples/oslcquery.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ def do_oslc_query(inputargs=None):
302302
args.component = args.projectname
303303
# not all apps support components, and even if the app does this project may not be opt-in
304304
if app.supports_components and not ( themaindomain == "gc" and args.resourcetype == 'Component'):
305+
if not p.singlemode and args.component is None:
306+
print( f"Warning - project '{args.projectname}' is opt-out, assuming the component has the same name as the project" )
307+
args.component = args.projectname
305308
if not p.singlemode and args.component is None and args.globalconfiguration is None:
306309
raise Exception( f"Project {args.projectname} supports components so you must provide a component name or use a global configuration" )
307310
if p.singlemode and args.globalconfiguration is None:

elmclient/oslcqueryapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def do_complex_query(self,queryresource, *, querystring='', searchterms=None, se
9494
, pagesize=200
9595
):
9696
if searchterms and querystring:
97-
print( f"{searchterms=}" )
98-
print( f"{querystring=}" )
97+
logger.info( f"{searchterms=}" )
98+
logger.info( f"{querystring=}" )
9999
raise Exception( "Can't use query and search terms together!" )
100100
if querystring is None:
101101
querystring=''

elmclient/tests/results/ccm301.html

Lines changed: 1272 additions & 1291 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)