Openbravo Issue Tracking System - Retail Modules  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0048073 | Retail Modules | Web POS | public | 2021-11-16 14:34 | 2021-12-02 14:49 | 
  | 
| Reporter | shuehner |   | 
| Assigned To | shuehner |   | 
| Priority | normal | Severity | minor | Reproducibility | have not tried | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 5 | OS Version |  | 
| Product Version |  |   | 
| Target Version |  | Fixed in Version | RR22Q1 |   | 
| Merge Request Status | approved | 
| Review Assigned To |  | 
| OBNetwork customer | No | 
| Support ticket |  | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
  | 
| Summary | 0048073: Remove leftover isMultiServer and 'servers' references from mobile.core | 
| Description | This is follow up to issue 47989. 
This tracks the changes inside mobile.core module. 
 
After issue 47989 the 'servers' list send from the backend to the frontend will b e always empty. 
 
That allows to: 
- Remove it from the responses 
- Cleanup code/comments reading (empty) response and setting in localStorage 
- Remove code reading servers from localStorage and setting it in 'servers' list 
- Cleanup code calling isMultiServer (which is servers.size >1) 
- cleanup & remove method RequestRouter.ignoreManifestLoadError() (always false) 
 | 
| Steps To Reproduce | - | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | depends on  | defect  | 0048072 |   | closed  | shuehner  | Remove leftover isMultiServer and 'servers' references from posterminal  |  | depends on  | defect  | 0047989 |   | closed  | shuehner  | Remove obsolete storeserver related code from posterminal  |  
  | 
| Attached Files |  | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2021-11-16 14:34 | shuehner | New Issue |  | 
| 2021-11-16 14:34 | shuehner | Assigned To |  => Retail | 
| 2021-11-16 14:34 | shuehner | OBNetwork customer |  => No | 
| 2021-11-16 14:34 | shuehner | Triggers an Emergency Pack |  => No | 
| 2021-11-16 14:34 | shuehner | Issue generated from | 0048072 | 
| 2021-11-16 14:34 | shuehner | Relationship added | depends on 0048072 | 
| 2021-11-16 14:35 | shuehner | Relationship added | depends on 0047989 | 
| 2021-12-02 12:14 | hgbot | Merge Request Status |  => open | 
| 2021-12-02 12:14 | hgbot | Note Added: 0133480 |  | 
| 2021-12-02 14:20 | hgbot | Merge Request Status | open => approved | 
| 2021-12-02 14:45 | shuehner | Assigned To | Retail => shuehner | 
| 2021-12-02 14:49 | hgbot | Note Added: 0133486 |  | 
| 2021-12-02 14:49 | hgbot | Note Added: 0133487 |  | 
| 2021-12-02 14:49 | hgbot | Resolution | open => fixed | 
| 2021-12-02 14:49 | hgbot | Status | new => closed | 
| 2021-12-02 14:49 | hgbot | Fixed in Version |  => RR22Q1 | 
| 2021-12-02 14:49 | hgbot | Note Added: 0133488 |  | 
| 2021-12-02 14:49 | hgbot | Note Added: 0133489 |  | 
	| 
		Notes	 | 
	
		 
	 | 
	
		
		
			| 
				(0133480)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2021-12-02 12:14   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0133486)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2021-12-02 14:49   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0133487)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2021-12-02 14:49   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0133488)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2021-12-02 14:49   
							 | 
		 
		 
	 | 
	
		
		
			
				Directly closing issue as related merge request is already approved. 
 
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^] 
Changeset: 4555984b799ed4703fc1ad753115e394f59fecf7 
Author: Stefan Huehner <stefan.huehner@openbravo.com> 
Date: 2021-12-02T14:30:15+01:00 
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/4555984b799ed4703fc1ad753115e394f59fecf7 [^] 
 
Fixes ISSUE-48073: More code-cleanup related to storeserver removal 
 
- ignoreManifestLoadError delete function as will always return false 
  and only user is removed in issue 48072 
- isMultiServer() will always return false now with only a single 
  name: 'Default' entry present in OB.RR.RequestRouter.servers list 
  - Cleanup any usage of that function 
    - checkFireOnlineNotification does nothing after this cleanup 
      remove the function and the single call into it 
    - Cleaning up setInterval(offlinePing) make the preference 
      OBMOBC_RequestRouterPingTime obsolete. Remove it entirely. 
 
--- 
M src-db/database/sourcedata/AD_REF_LIST.xml 
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js 
--- 
			 | 
		 
		 
	 | 
	
		 
	 | 
	
		
		
			| 
				(0133489)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2021-12-02 14:49   
							 | 
		 
		 
	 | 
	
		
	 |