Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SEU colour support #2192

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Remove SEU colour support #2192

wants to merge 14 commits into from

Conversation

worksofliam
Copy link
Contributor

@worksofliam worksofliam commented Jul 23, 2024

Changes

Closes #2056.

Todo

  • Add translation for cleanup UI question ✅
  • Add test case ✅

How to test this PR

Create a member using SQL:

Click me
CREATE OR REPLACE ALIAS ILEDITOR.LIAMA_QRPGLESRC_COLOURS for "LIAMA"."QRPGLESRC"("COLOURS");

delete from ILEDITOR.LIAMA_QRPGLESRC_COLOURS;

insert into ILEDITOR.LIAMA_QRPGLESRC_COLOURS (srcseq, srcdat, srcdta)
values 
  (01.00, 240805, '      // This illustrates 5250 attribute bytes.'),
  (02.00, 240805, '     '),
--(05.00, 240805, '     C*' concat x'XX' concat 'X''XX''' concat x'404020' concat  'X''XX'' GRN RI UL BL CS ND'),
  (03.00, 240805, '     C*' concat x'20' concat 'X''20''' concat x'404020' concat  'X''20'' GRN               '),
  (04.00, 240805, '     C*' concat x'24' concat 'X''24''' concat x'404020' concat  'X''24'' GRN    UL         '),
  (05.00, 240805, '     C*' concat x'25' concat 'X''25''' concat x'404020' concat  'X''25'' GRN RI UL         '),
  (06.00, 240805, '     C*' concat x'2E' concat 'X''2E''' concat x'404020' concat  'X''2E'' RED    UL BL      '),
  (07.00, 240805, '     C*' concat x'2F' concat 'X''2F''' concat x'404020' concat  'X''2F'' RED             ND'),
  (08.00, 240805, '     C*' concat x'30' concat 'X''30''' concat x'404020' concat  'X''30'' TRQ          CS   '),
  (09.00, 240805, '     C*' concat x'36' concat 'X''36''' concat x'404020' concat  'X''36'' YLW          CS   '),
  (10.00, 240805, '     C*' concat x'37' concat 'X''37''' concat x'404020' concat  'X''37'' YLW          CS ND'),
  (11.00, 240805, '     C*' concat x'3D' concat 'X''3D''' concat x'404020' concat  'X''3D'' PNK RI UL         '),
  (12.00, 240805, '     C*' concat x'3E' concat 'X''3E''' concat x'404020' concat  'X''3E'' BLU    UL         '),
  (13.00, 240805, '     C*' concat x'3F' concat 'X''3F''' concat x'404020' concat  'X''3F'' revert to default '),
  (14.00, 240805, '     '),
  (15.00, 240805, '       *inlr = *on;'),
  (16.00, 240805, '       return;')

Then open the member with Code for IBM i and expect to see the question for cleanup.

Checklist

  • have tested my change
  • have created one or more test cases
  • updated relevant documentation
  • Remove any/all console.logs I added
  • have added myself to the contributors' list in CONTRIBUTING.md

@worksofliam worksofliam requested a review from a team July 23, 2024 14:23
@worksofliam worksofliam added this to the 3.0.0 milestone Jul 29, 2024
@worksofliam worksofliam changed the title Remove SEU colour support Remove SEU colour support, add cleanup support Aug 2, 2024
@worksofliam worksofliam linked an issue Aug 3, 2024 that may be closed by this pull request
@worksofliam worksofliam marked this pull request as draft August 7, 2024 14:24
@worksofliam worksofliam self-assigned this Aug 7, 2024
@worksofliam worksofliam marked this pull request as ready for review September 2, 2024 19:17
@worksofliam worksofliam added the ready Ready for review label Sep 3, 2024
@worksofliam worksofliam changed the title Remove SEU colour support, add cleanup support Remove SEU colour support Nov 25, 2024
Copy link
Contributor

github-actions bot commented Nov 26, 2024

👋 A new build is available for this PR based on 93f5945.

Copy link
Collaborator

@sebjulliand sebjulliand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is just a missing localised string; otherwise it looks good. And the code is cleaner!

src/languages/colour.ts Outdated Show resolved Hide resolved
Co-authored-by: Sébastien Julliand <[email protected]>
@worksofliam
Copy link
Contributor Author

@sebjulliand I checked the splitLines part and I am seeing 16. You said you were seeing 18?

Any chance you can share the contents of splitLines at the same point?

image

@sebjulliand
Copy link
Collaborator

Look how funny it is!
image

@worksofliam
Copy link
Contributor Author

@sebjulliand So it looks like the characters get converted differently based on whether source dates is enabled or disabled (e.g. fetching the contents with SQL or CPYTOSTMF).

What do you think we should do? Should we try and support both cases?

@worksofliam worksofliam removed the ready Ready for review label Dec 2, 2024
@sebjulliand
Copy link
Collaborator

@sebjulliand So it looks like the characters get converted differently based on whether source dates is enabled or disabled (e.g. fetching the contents with SQL or CPYTOSTMF).

What do you think we should do? Should we try and support both cases?

I'm afraid so 🙄

@worksofliam
Copy link
Contributor Author

@sebjulliand I am actually think we need to do this outside of the file system providers and perhaps instead use @chrjorgensen's SQL procedure to handle the logic.

It could be embedded as a component, or we could point users there. Writing the logic twice over for two file systems might not be in our interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants