Menu

dbunit Merge Request #50: Implement #232 (merged)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Rich DiCroce wants to merge 1 commit from /u/rcd/dbunit/ to master, 2024-10-24

Adds support for filtering computed columns (and columns in general) out of datasets.

Commit Date  
[95f9d6] (computed-columns) by Richard DiCroce Richard DiCroce

F232 - Support filtering computed columns out of datasets

2019-04-30 19:05:21 Tree

Discussion

  • Jeff Jensen

    Jeff Jensen - 2020-02-23

    Hi Rich,
    What user docs/instructions should we add to describe how to use this new functionality?
    (sincere apologies for the delay)

     
    • Rich DiCroce

      Rich DiCroce - 2020-03-02

      The idea is to use a TableDecoratorDataSet to wrap an existing IDataSet. The TableDecoratorDataSet takes a function that is called for each table in the underlying dataset, and that function can wrap the table, replace the table, or just pass the table back as-is.

      Here's a code snippet taken from a real application where I'm using this patch:

      dataset = new TableDecoratorDataSet(
                      dataset, table -> new ColumnFilterTable(table, new GeneratedColumnFilter()));
      
       
      • Jeff Jensen

        Jeff Jensen - 2020-03-03

        Thank you. Do you have interest in adding site doc changes in the correct locations to your branch/MR for user docs?

         
  • Rich DiCroce

    Rich DiCroce - 2020-03-03

    I assume that would involve adding TableDecoratorDataSet to the list of IDataSets on the Core Components page. Anything else I should do?

     
    • Jeff Jensen

      Jeff Jensen - 2020-03-07

      Yes, definitely there; I didn't notice another location.
      Thank you for adding docs too.

       
  • Jeff Jensen

    Jeff Jensen - 2020-03-07

    Please rebase too, when ready.

     
    • Rich DiCroce

      Rich DiCroce - 2020-04-02

      Finally got back to this. Rebased on latest master and added docs.

       
      • Jeff Jensen

        Jeff Jensen - 2021-07-30

        An embarrassingly large amount of time has passed, sorry.

        I fetched your branch into the dbUnit repo branch "F232-rich-computed-columns", rebased master, and pushed so Travis CI can build with the databases. Regretfully, the build fails so I cannot merge it:
        https://travis-ci.com/github/dbunit/dbunit-mirror/builds/234058200

        If you have interest and time to review that and fix, these steps outline the needs:
        http://dbunit.sourceforge.net/devguide.html

        and one step refers to the Integration Tests page which describes an easy way to run the same tests using Docker images of the databases.:
        http://dbunit.sourceforge.net/integrationtests.html

         
        • Rich DiCroce

          Rich DiCroce - 2023-02-07

          Well I've finally come back to this after an equally long amount of time. The project where I needed this was on ice for a while but now it's heating up again.

          I've rewritten the patch on top of latest master and force pushed the branch. Although that doesn't seem to have updated this MR for whatever reason.

          The build logs from that Travis run are long gone, of course, so I don't know why it failed. Try grabbing the updated branch and running it through Travis. If it fails again, I'll look at it to figure out why.

           
          • Edward Mann

            Edward Mann - 2024-07-04

            Rich, i am looking over the existing merge requests wanting to get them caught up before i update to java 17+. I found your branch "computed-columns", i hope this is the correct one.

            If not can you send me a link to it? I will pull it and work on tests that are failing. We will most likely need to create a new merge request from that branch.

            Thanks

             
            • Rich DiCroce

              Rich DiCroce - 2024-07-08

              Yes, that is the correct branch.

               
  • Rich DiCroce

    Rich DiCroce - 2024-10-03

    Jeff/Edward: I've rebased this branch on top of latest master. Any chance one of you could review and merge it?

     
    • Jeff Jensen

      Jeff Jensen - 2024-10-24

      Thank you Rich. We just merged the JUnit 5 updates to master. I did a quick rebase of your branch on that and stopped at compiler errors simply due to time. I can proceed with it in the near future but if you want it in the 3.0.0 release, please rebase yet one more should-be-last-time and should merge smoothly then.

       
      • Rich DiCroce

        Rich DiCroce - 2024-10-24

        Done.

         
        • Jeff Jensen

          Jeff Jensen - 2024-10-24

          Thank you for doing it again!
          Regretfully its build fails on tests both my local and dbUnit CI on "java.sql.SQLException: Column not found: 24". https://gitlab.com/dbUnit/dbunit-extension/-/jobs/8175569590
          Does the build pass for you?

           
          • Rich DiCroce

            Rich DiCroce - 2024-10-24

            Fixed. That column has been in the JDBC spec since 4.1 but apparently some drivers still don't implement it. The tests are now all passing on my machine using the default HSQLDB profile.

             
            • Jeff Jensen

              Jeff Jensen - 2024-10-24
               
              • Jeff Jensen

                Jeff Jensen - 2024-10-24

                Your IDE formatting differs from dbUnit formatter so I tweaked a few files for that and also updated changes.xml. I squashed my changes into your commit. also updated commit message.

                 
  • Jeff Jensen

    Jeff Jensen - 2024-10-24

    Merged. Thank you so much for your patience and diligence with your updates.

     
  • Jeff Jensen

    Jeff Jensen - 2024-10-24
    • Status: open --> merged
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.