Ticket #1262 (closed enhancement: wontfix)

Opened 4 years ago

Last modified 3 years ago

Process non-ds object in the right way in Journal

Reported by: alsroot Owned by: tomeu
Priority: Normal Milestone: 0.88
Component: sugar Version: 0.85.x
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Needinfo

Description

For 0.86 edit widgets could be just insensitive

Attachments

sugar-1262.patch Download (5.6 KB) - added by alsroot 4 years ago.

Change History

  Changed 4 years ago by alsroot

  • keywords r? added

  Changed 4 years ago by alsroot

  • milestone changed from Unspecified by Release Team to 0.86

follow-up: ↓ 4   Changed 4 years ago by tomeu

  • keywords r! added; r? removed

The patch looks good, just a couple of questions:

374	 	def find(query, page_size): 
 	374	def find(query_, page_size): 

Why do we need to make this change?

        mountpoints = metadata.get('mountpoints')

When do we have a 'mountpoints' property? Didn't knew about it.

in reply to: ↑ 3   Changed 4 years ago by alsroot

Replying to tomeu:

The patch looks good, just a couple of questions:

{{{
374 def find(query, page_size):
374 def find(query_, page_size):
}}}

because it changes query argument(by poping 'mountpoints'), so next invoking of ListModel() in listview.py:287 will not contain 'mountpoints'

Why do we need to make this change?

{{{
mountpoints = metadata.get('mountpoints')
}}}

When do we have a 'mountpoints' property? Didn't knew about it.

model.is_editable() is used for query as well(when we don't have any row, see the patch)

Changed 4 years ago by alsroot

  Changed 4 years ago by alsroot

  • keywords r? added; r! removed

  Changed 4 years ago by tomeu

  • keywords r+ added; r? removed

Looks good to me, though I would do:

is_editable = self._query.get('mountpoints', '') == '/'
self.cell_title.props.editable = is_editable

instead of

315             is_editable = False 
316	        mountpoints = self._query.get('mountpoints') 
317	        if mountpoints is not None and len(mountpoints): 
318	            is_editable = mountpoints[0] == '/' 
319	        self.cell_title.props.editable = is_editable 

  Changed 4 years ago by alsroot

  • status changed from new to closed
  • resolution set to fixed

  Changed 4 years ago by alsroot

Related non-ds issues: #1411, #1415

  Changed 4 years ago by alsroot

  • keywords r+ removed
  • priority changed from Unspecified by Maintainer to Normal
  • version changed from Git as of bugdate to 0.85.x
  • type changed from defect to enhancement
  • milestone changed from 0.86 to 0.88

Reopen ticket to have more essential behaviour in 0.88

  Changed 4 years ago by alsroot

  • status changed from closed to reopened
  • resolution fixed deleted

  Changed 3 years ago by garycmartin

  • status_field changed from Unconfirmed to Needinfo

Did this make it in to 0.88? Perhaps push back additional work (if they are not bug fixes) to 0.90?

  Changed 3 years ago by alsroot

  • status changed from reopened to closed
  • resolution set to wontfix

I guess it could be closed since there is #1636 which implements RW for non-ds objects.

Note: See TracTickets for help on using tickets.